From 90665c3dc5d829acb0f5f01051c88026df358e04 Mon Sep 17 00:00:00 2001 From: zyx Date: Thu, 17 Oct 2019 20:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BC=E5=8C=85bug?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/GiftbagController.class.php | 12 ++++ Application/Admin/View/Giftbag/add.html | 4 +- Application/Admin/View/Giftbag/edit.html | 59 ++++++++++++------- Application/Admin/View/Giftbag/lists.html | 2 +- 4 files changed, 52 insertions(+), 25 deletions(-) diff --git a/Application/Admin/Controller/GiftbagController.class.php b/Application/Admin/Controller/GiftbagController.class.php index f1b4a4dd2..47842dc2f 100644 --- a/Application/Admin/Controller/GiftbagController.class.php +++ b/Application/Admin/Controller/GiftbagController.class.php @@ -160,6 +160,13 @@ class GiftbagController extends ThinkController { $model || $this->error('模型不存在!'); if(IS_POST){ + + if ($_POST['giftbag_version'] == '3') { + + $_POST['start_time'] = time(); + + } + $Model = D(parse_name(get_table_name($model['id']),1)); // 获取模型的字段信息 @@ -174,6 +181,11 @@ class GiftbagController extends ThinkController { } } $data = $Model->create(); + + if ($_POST['giftbag_version'] == '3') { + $data['start_time'] = time(); + } + if($data){ $data['novice'] = str_replace(array("\r\n", "\r", "\n"), ",", $_POST['novice']); $data['novice_num'] = count(explode(',',$data['novice'])); diff --git a/Application/Admin/View/Giftbag/add.html b/Application/Admin/View/Giftbag/add.html index e74c544ee..ba05b766f 100644 --- a/Application/Admin/View/Giftbag/add.html +++ b/Application/Admin/View/Giftbag/add.html @@ -77,7 +77,7 @@ @@ -88,7 +88,7 @@ diff --git a/Application/Admin/View/Giftbag/edit.html b/Application/Admin/View/Giftbag/edit.html index 077d46c17..27c924717 100644 --- a/Application/Admin/View/Giftbag/edit.html +++ b/Application/Admin/View/Giftbag/edit.html @@ -76,38 +76,48 @@ 运营平台 + - + + + - - 礼包状态: - - - - - - + + + 礼包状态: + + + + + + + - - - - - + 关闭 + + + + + + + 礼包类型: @@ -126,12 +136,14 @@ + *礼包名称: + 礼包区服: @@ -141,6 +153,8 @@ + + 有效周期: @@ -148,6 +162,7 @@ value="{:set_show_time($data['end_time'],'time','other')}" placeholder="输入结束时间 不填表示 永久"> + 激活码: diff --git a/Application/Admin/View/Giftbag/lists.html b/Application/Admin/View/Giftbag/lists.html index d7b99f137..5f0476e1d 100644 --- a/Application/Admin/View/Giftbag/lists.html +++ b/Application/Admin/View/Giftbag/lists.html @@ -144,7 +144,7 @@ {$data.game_name} {$data.giftbag_name} - {:get_systems_name($data['giftbag_version'])} + {:get_systems_name($data['giftbag_version'])}超级签全部 {$data['novice_num']} {$data['novice']}