Quellcode durchsuchen

up - 维修字段

liugc vor 1 Jahr
Ursprung
Commit
54e763128a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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'],