api_biz_1103_2

This commit is contained in:
dengbw
2021-11-03 14:48:42 +08:00
parent 4606a018ea
commit 40ebdc03b0
+2 -2
View File
@@ -218,12 +218,12 @@ AND bill_time='0000-00-00 00:00:00' GROUP BY cor_id ORDER BY in_time DESC";
'p_time' => date('Y-m-d H:i:s'),
'c_time' => time()
];
$where = ['biz_id' => $biz_id, 'mobile' => $add_data['mobile'], 'cf_id' => $this->cf_id];
$where = ['biz_id' => $biz_id, 'mobile' => $add_data['mobile'], 'cf_id' => $add_data['cf_id']];
$t_id && $where['t_id'] = $t_id;
$re_cus = $this->mdCustomers->get($where);
if ($re_cus) {
//throw new Hd_exception('您已经预约报名了', API_CODE_FAIL);
throw new Hd_exception('预约报名成功!', API_CODE_SUCCESS);
throw new Hd_exception('预约报名成功', API_CODE_SUCCESS);
}
$id = $this->mdCustomers->add($add_data);
if (!$id) {