Commit 6d07d968 authored by hujun's avatar hujun

商铺详情拨打房东手机号,新增经纪人拨打号码

parent daff940f
...@@ -40,10 +40,11 @@ class AAgentsPhone extends BaseModel ...@@ -40,10 +40,11 @@ class AAgentsPhone extends BaseModel
$result = $this->saveAll($insert_data); $result = $this->saveAll($insert_data);
} else { } else {
$is = $this->get(['phone'=>$phone,'agents_id'=>$id,'status'=>0]);//去重 $is = $this->get(['phone'=>$phone,'agents_id'=>$id,'status'=>0]);//去重
if (!$is){ if ($is){
$result = $this->save(['phone'=>$phone,'agents_id'=>$id]); $result = $is['id'];
} else { } else {
$result = 0; $this->save(['phone'=>$phone,'agents_id'=>$id]);
$result = $this->id;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment