Просмотр исходного кода

Merge branch 'master' of e.coding.net:zdap/weixiu/weixiu_api into 1115-m

liugc 1 год назад
Родитель
Сommit
37d8bccdb2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/workerapi/logic/LoginLogic.php

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

@@ -77,7 +77,7 @@ class LoginLogic extends BaseLogic
                 $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']:'',
-                    'other_exp_name' => (isset($params['other_exp_name']) && $params['other_exp_type'] == 4)?$params['other_exp_name']:'',
+                    'other_exp_name' => (isset($params['other_exp_name']) && isset($params['other_exp_type']) && $params['other_exp_type'] == 4)?$params['other_exp_name']:'',
                     'city' => $params['city'],
                     'vehicle_type' => $params['vehicle_type'],
                     'name' => $params['name'],
@@ -96,7 +96,7 @@ class LoginLogic extends BaseLogic
                 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']:'',
-                    'other_exp_name' => (isset($params['other_exp_name']) && $params['other_exp_type'] == 4)?$params['other_exp_name']:'',
+                    'other_exp_name' => (isset($params['other_exp_name']) && isset($params['other_exp_type']) && $params['other_exp_type'] == 4)?$params['other_exp_name']:'',
                     'city' => $params['city'],
                     'vehicle_type' => $params['vehicle_type'],
                     'name' => $params['name'],