edit-api-create_clue

This commit is contained in:
lccsw
2021-10-14 13:40:00 +08:00
parent 06c69b7fb0
commit aa33cd809a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class Aptinfo extends Wxapp{
$brand_row = $this->auto_brand_model->get(['id'=>$cms_row['target_id']]);
$recommend_id && $cf_id = 8;
}
$row = $this->clues_model->get(['mobile'=>$this->session['mobile'],'app_id'=>$this->app_id]);
$row = $this->clues_model->get(['mobile'=>$this->session['mobile']]);
if($row){
$update = [
'en_time' => date('Y-m-d H:i:s')
+1 -1
View File
@@ -44,7 +44,7 @@ class Clues extends Wxapp{
if(!mobile_valid($mobile)){
throw new Exception('手机号格式错误', ERR_PARAMS_ERROR);
}
$row = $this->receiver_clues_model->get(['app_id'=>$this->app_id,'mobile'=>$mobile,'cf_uid'=>$this->session['uid']]);
$row = $this->receiver_clues_model->get(['mobile'=>$mobile]);
if($row){
throw new Exception('该手机号已报备', ERR_PARAMS_ERROR);
}