liugc 1 год назад
Родитель
Сommit
235f5541a0

+ 4 - 0
app/adminapi/logic/setting/web/WebSettingLogic.php

@@ -171,6 +171,8 @@ class WebSettingLogic extends BaseLogic
         ConfigService::set('master_agreement', 'master_privacy_content', clear_file_domain($params['master_privacy_content'] ?? ''));
         ConfigService::set('master_agreement', 'master_allow_title', $params['master_allow_title'] ?? '');
         ConfigService::set('master_agreement', 'master_allow_content', clear_file_domain($params['master_allow_content'] ?? ''));
+        ConfigService::set('master_agreement', 'master_personal_title', $params['master_personal_title'] ?? '');
+        ConfigService::set('master_agreement', 'master_personal_content', clear_file_domain($params['master_personal_content'] ?? ''));
     }
 
 
@@ -190,6 +192,8 @@ class WebSettingLogic extends BaseLogic
             'master_privacy_content' => ConfigService::get('master_agreement', 'master_privacy_content'),
             'master_allow_title' => ConfigService::get('master_agreement', 'master_allow_title'),
             'master_allow_content' => ConfigService::get('master_agreement', 'master_allow_content'),
+            'master_personal_title' => ConfigService::get('master_agreement', 'master_personal_title'),
+            'master_personal_content' => ConfigService::get('master_agreement', 'master_personal_content'),
         ];
         return $config;
     }

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

@@ -75,8 +75,8 @@ class LoginLogic extends BaseLogic
 
             if(!$master->isEmpty() and $master->status==2){
                 $master->save([
-                    'maintain_exp_type' => $params['maintain_exp_type'],
-                    'other_exp_type' => $params['other_exp_type'],
+                    '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']:'',
                     'city' => $params['city'],
                     'vehicle_type' => $params['vehicle_type'],