|
|
@@ -62,7 +62,7 @@ class MasterService extends BaseService
|
|
|
return message('用户账号不可操作', false);
|
|
|
}
|
|
|
|
|
|
- $info = $this->model::where(['id'=> $userId])->first();
|
|
|
+ $info = $this->model::where(['user_id'=> $userId])->first();
|
|
|
if($info && $info->mark==1 && $info->status==1){
|
|
|
return message('您已经入驻成功,不需要再提交', false);
|
|
|
}else if($info && $info->mark == 1 && $info->status==2){
|
|
|
@@ -88,6 +88,7 @@ class MasterService extends BaseService
|
|
|
}
|
|
|
}else{
|
|
|
$data = [
|
|
|
+ 'user_id'=> $userId,
|
|
|
'realname'=> isset($params['realname'])? trim($params['realname']) : '',
|
|
|
'master_no'=> isset($params['master_no'])? $params['master_no'] : '',
|
|
|
'contact_phone'=> isset($params['contact_phone'])? $params['contact_phone'] : '',
|