Преглед изворни кода

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

liugc пре 1 година
родитељ
комит
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'],