diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index 25c26f736..223e026fe 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -62,6 +62,10 @@ class SocietyInfoController extends ThinkController $count = $query->count(); if($is_export){ $parseData = $query->field("*")->select(); + foreach ($parseData as &$v) { + if ($v['is_potential'] == 1) $v['is_potential'] = "是"; + else $v['is_potential'] = "否"; + } $this->assign('listData', $parseData); $GetData = $_GET; unset($GetData['export']); @@ -223,6 +227,8 @@ class SocietyInfoController extends ThinkController if ($_POST) { $save = I("post."); + if ($save['province'] == "请选择省份") $save['province'] = ''; + if ($save['city'] == "请选择城市") $save['city'] = ''; $save['create_time'] = time(); $save['update_time'] = time(); $save['communication_time'] = time(); diff --git a/Application/Admin/View/SocietyInfo/add.html b/Application/Admin/View/SocietyInfo/add.html index 1cb0425a1..ed8c389bd 100644 --- a/Application/Admin/View/SocietyInfo/add.html +++ b/Application/Admin/View/SocietyInfo/add.html @@ -48,7 +48,7 @@