diff --git a/app/admin/controller/Appconfig.php b/app/admin/controller/Appconfig.php index bbd7ed71d..ceae163e8 100755 --- a/app/admin/controller/Appconfig.php +++ b/app/admin/controller/Appconfig.php @@ -55,12 +55,17 @@ class AppConfig extends Base */ public function Save() { - // 空字段处理 - $field_list = [ - 'common_user_onekey_bind_mobile_list', - 'common_user_address_platform_import_list', - ]; - return ApiService::ApiDataReturn(ConfigService::ConfigSave(ConfigService::FieldsEmptyDataHandle($_POST, $field_list))); + $params = $_POST; + if(isset($this->ress['nav_type']) && $ssss['nav_type'] == 'app') + { + // 空字段处理 + $field_list = [ + 'common_user_onekey_bind_mobile_list', + 'common_user_address_platform_import_list', + ]; + $params = ConfigService::FieldsEmptyDataHandle($params, $field_list); + } + return ApiService::ApiDataReturn(ConfigService::ConfigSave($params)); } } ?> \ No newline at end of file diff --git a/app/admin/controller/Common.php b/app/admin/controller/Common.php index 935e0a243..f33d3c92a 100755 --- a/app/admin/controller/Common.php +++ b/app/admin/controller/Common.php @@ -398,7 +398,7 @@ class Common extends BaseController // 多语言 $assign['multilingual_default_code'] = MultilingualService::GetUserMultilingualValue(); - $assign['multilingual_data'] = MultilingualService::MultilingualData(); + $assign['multilingual_data'] = (MyC('admin_use_multilingual_status') == 1) ? MultilingualService::MultilingualData() : []; // 模板赋值 MyViewAssign($assign); diff --git a/app/admin/controller/Site.php b/app/admin/controller/Site.php index 7f8bcc739..e2856e596 100755 --- a/app/admin/controller/Site.php +++ b/app/admin/controller/Site.php @@ -191,6 +191,8 @@ class Site extends Base 'second_nav_list' => MyLang('site.second_nav_list'), // 网站设置导航 'siteset_nav_list' => MyLang('site.siteset_nav_list'), + // 多语言 + 'common_multilingual_list' => MyLang('common_multilingual_list'), ]; return $assign; } @@ -283,6 +285,11 @@ class Site extends Base case 'order' : $params['common_default_payment'] = empty($params['common_default_payment']) ? '' : json_encode($params['common_default_payment'], JSON_UNESCAPED_UNICODE); break; + + // 扩展 + case 'extends' : + $field_list[] = 'common_multilingual_choose_list'; + break; } break; diff --git a/app/admin/lang/en.php b/app/admin/lang/en.php index de4ffd88d..5ba1100a5 100644 --- a/app/admin/lang/en.php +++ b/app/admin/lang/en.php @@ -178,6 +178,7 @@ return [ 'base_item_crontab_config_title' => 'Timing Script Config', 'base_item_quick_nav_title' => 'Quick Navigation', 'base_item_user_address_title' => 'User Address', + 'base_item_multilingual_title' => 'Multilingual', 'base_item_site_auto_mode_title' => 'Automatic Mode', 'base_item_site_manual_mode_title' => 'Manual Mode', 'base_item_default_payment_title' => 'Default Payment Method', diff --git a/app/admin/lang/zh.php b/app/admin/lang/zh.php index c14d53ea1..e2c778dea 100755 --- a/app/admin/lang/zh.php +++ b/app/admin/lang/zh.php @@ -178,6 +178,7 @@ return [ 'base_item_crontab_config_title' => '定时脚本配置', 'base_item_quick_nav_title' => '快捷导航', 'base_item_user_address_title' => '用户地址', + 'base_item_multilingual_title' => '多语言', 'base_item_site_auto_mode_title' => '自动模式', 'base_item_site_manual_mode_title' => '手动模式', 'base_item_default_payment_title' => '默认支付方式', diff --git a/app/admin/view/default/appconfig/app.html b/app/admin/view/default/appconfig/app.html index 3aa736cf9..f6f49021c 100644 --- a/app/admin/view/default/appconfig/app.html +++ b/app/admin/view/default/appconfig/app.html @@ -8,7 +8,7 @@