liugc hai 1 ano
pai
achega
8f9cb54e51
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      app/workerapi/logic/LoginLogic.php

+ 6 - 2
app/workerapi/logic/LoginLogic.php

@@ -63,12 +63,13 @@ class LoginLogic extends BaseLogic
     }
     public static function register(array $params)
     {
+        Log::info('params-1'.json_encode($params));
         try {
             // 通过 $params['city'] 查询省市区
             $postageRegion = array_column(getPostageRegion(), null, 'id');
             $params['province'] = $postageRegion[$params['city']]['pid'];
             $params['province'] && $params['area_name'] = $postageRegion[$params['province']]['name'].$postageRegion[$params['city']]['name'];
-
+            Log::info('params-2');
             $master = MasterWorkerRegister::where('mobile',$params['mobile'])->findOrEmpty();
 
             if(!$master->isEmpty() and $master->status==1){
@@ -79,8 +80,10 @@ class LoginLogic extends BaseLogic
                 throw new \Exception('该手机号后台审核中');
             }
 
-            Log::info('params'.json_encode($params));
+            Log::info('params-3');
             if(!$master->isEmpty() and $master->status==2){
+
+                Log::info('params-4');
                 $master->save([
                     'maintain_exp_type' => isset($params['maintain_exp_type'])?$params['maintain_exp_type']:0,
                     'other_exp_type' => isset($params['other_exp_type'])?$params['other_exp_type']:'',
@@ -104,6 +107,7 @@ class LoginLogic extends BaseLogic
                     'openid' => $params['openid']??'',
                 ]);
             }else{
+                Log::info('params-5');
                 $master = MasterWorkerRegister::create([
                     'maintain_exp_type' => isset($params['maintain_exp_type'])?$params['maintain_exp_type']:0,
                     'other_exp_type' => isset($params['other_exp_type'])?$params['other_exp_type']:'',