|
@@ -207,7 +207,12 @@ class CustomerModel extends Model
|
|
|
}
|
|
|
}
|
|
|
if (isset($param['email'])){
|
|
|
- $customerIsset = $this->where('spread_id',$customer['spread_id'])->where('email',$param['email'])->find()->toArray();
|
|
|
+ $customerIsset = $this
|
|
|
+ ->where('spread_id',$customer['spread_id'])
|
|
|
+ ->where('email',$param['email'])
|
|
|
+ ->where('id','neq',$customer['id'])
|
|
|
+ ->find()
|
|
|
+ ->toArray();
|
|
|
if ($customerIsset) {
|
|
|
return json(['code' => 100,'msg'=>'邮箱重复,修改失败']);
|
|
|
} else{
|