diff --git a/api/controllers/wxapp/material/Biz.php b/api/controllers/wxapp/material/Biz.php index 5492f0ec..5f9ba4a8 100644 --- a/api/controllers/wxapp/material/Biz.php +++ b/api/controllers/wxapp/material/Biz.php @@ -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) {