|
@@ -209,10 +209,10 @@ class StoreService extends BaseService
|
|
|
|
|
|
|
|
|
|
|
|
|
// 手机号唯一性验证
|
|
// 手机号唯一性验证
|
|
|
- $type = isset($data['type']) && $data['type']? $data['type'] : 1;
|
|
|
|
|
|
|
+ $categoryId = isset($data['category_id']) && $data['category_id']? $data['category_id'] : 1;
|
|
|
$id = isset($data['id']) ? $data['id'] : 0;
|
|
$id = isset($data['id']) ? $data['id'] : 0;
|
|
|
if ($mobile) {
|
|
if ($mobile) {
|
|
|
- $checkId = $this->model->where(['mobile' => $mobile,'type'=>$type, 'mark' => 1])->value('id');
|
|
|
|
|
|
|
+ $checkId = $this->model->where(['mobile' => $mobile,'category_id'=>$categoryId, 'mark' => 1])->value('id');
|
|
|
if ($checkId && ($id != $checkId)) {
|
|
if ($checkId && ($id != $checkId)) {
|
|
|
return message('该商户已存在', false);
|
|
return message('该商户已存在', false);
|
|
|
}
|
|
}
|