From e3f020965d712c1253242186c6ae2803a6f2e59f Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 30 Dec 2020 16:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/SocietyInfoController.class.php | 5 +++++ Application/Admin/View/SocietyInfo/edit.html | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index 1725709ad..e4c1c22ec 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -292,6 +292,11 @@ class SocietyInfoController extends ThinkController foreach ($save['game_types'] as $v) { $save['game_type'] .= $v . "/"; } + if ($save['province'] == '请选择省份') { + $save['province'] = ''; + $save['city'] = ''; + } + $save['game_type'] = trim($save['game_type'], '/'); $save['communication_time'] = time(); $save['update_time'] = time(); diff --git a/Application/Admin/View/SocietyInfo/edit.html b/Application/Admin/View/SocietyInfo/edit.html index d2c8f19fe..7d7c7eb18 100644 --- a/Application/Admin/View/SocietyInfo/edit.html +++ b/Application/Admin/View/SocietyInfo/edit.html @@ -255,10 +255,10 @@ $("#submit").on("click",function(){ var cres = $('form').serializeArray(); if ($("#province").val() == "请选择省份" || !$("#province").val()) { - layer.msg('请选择省份');return ; + // layer.msg('请选择省份');return ; } if (!$("#city").val()) { - layer.msg('请选择城市');return ; + // layer.msg('请选择城市');return ; } if (!$("#company_name").val()) { layer.msg('请输入公司名');return ;