From 40ebdc03b0629bf510beb1f271f52da877a148ae Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 3 Nov 2021 14:48:42 +0800 Subject: [PATCH] api_biz_1103_2 --- api/controllers/wxapp/material/Biz.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {