|
|
@@ -53,7 +53,16 @@ class LoginLogic extends BaseLogic
|
|
|
{
|
|
|
try {
|
|
|
$master = MasterWorkerRegister::where('mobile',$params['mobile'])->findOrEmpty();
|
|
|
- if(!$master->isEmpty()){
|
|
|
+
|
|
|
+ if(!$master->isEmpty() and $master->status==1){
|
|
|
+ throw new \Exception('该手机号已入驻');
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!$master->isEmpty() and $master->status==0){
|
|
|
+ throw new \Exception('该手机号后台审核中');
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!$master->isEmpty() and $master->status==2){
|
|
|
$master->save([
|
|
|
'maintain_exp_type' => $params['maintain_exp_type'],
|
|
|
'other_exp_type' => $params['other_exp_type'],
|