diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 5638da792..0f5e8e217 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -298,6 +298,9 @@ class GameController extends ThinkController $this->error('一句话简介不能超过30个字!'); exit; } + if (!preg_match("/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/i", $_POST['beta_url'])) { + return $this->error("请填写正确的Bata链接"); + } /*if($_POST['apply_status']==0&&$_POST['game_status']==1){ $this->error('游戏未审核不允许显示');//游戏添加完成 }*/ @@ -349,6 +352,8 @@ class GameController extends ThinkController $phone['flooring_page_video'] = $sibling['flooring_page_video']; $phone['flooring_page_video_cover'] = $sibling['flooring_page_video_cover']; $phone['supersign_status'] = $sibling['supersign_status']; + $phone['beta_url'] = $_POST['beta_url']; + $phone['beta_status'] = $_POST['beta_status']; M('Game', 'tab_')->data($phone)->where(array('id' => $another['id']))->save(); //同时修改代充游戏折扣 $set_fidel['status'] = 1; diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 73c1a1b0a..a76becf9a 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -227,7 +227,9 @@ class PromoteController extends ThinkController if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) { $this->error('账号只能是6-15位字母或数字'); } - + if (empty($company_id)) { + $this->error('请选择推广公司'); + } $promoteService = new PromoteService(); $status = $promoteService->addPromote($data); if ($status) { @@ -278,7 +280,8 @@ class PromoteController extends ThinkController $data['account'] = I('post.account'); $map1['id'] = array('neq',$_POST['id']); $map1['account'] = $data['account']; - if ($this->accountExist($data['account'])) { + + if ($this->accountExist($data['account'], $_POST['id'])) { $this->error('该账号已存在'); } $pdata = D('Promote')->where($map1)->find(); diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index 595e67d20..f3ff9f62d 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -429,6 +429,28 @@ + + Bata版本链接: + + + + + + + Bata版本是否开启 + + + + + + + + + diff --git a/Application/Admin/View/Promote/add.html b/Application/Admin/View/Promote/add.html index 4a22e69e7..d2a4326dd 100644 --- a/Application/Admin/View/Promote/add.html +++ b/Application/Admin/View/Promote/add.html @@ -38,6 +38,19 @@ 密码长度必须大于6位 + + + *所属推广公司 + + + + + 账号状态: @@ -83,19 +96,6 @@ - - 所属推广公司 - - - - - - diff --git a/Application/Admin/View/SuperStatistical/index.html b/Application/Admin/View/SuperStatistical/index.html index 6647a0d62..b0288070e 100644 --- a/Application/Admin/View/SuperStatistical/index.html +++ b/Application/Admin/View/SuperStatistical/index.html @@ -157,7 +157,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/SuperStatistical/lists' + params , 'no'] + content: 'admin.php?s=/SuperStatistical/lists' + params }); }); $("#role1").click(function () { @@ -167,7 +167,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/SuperStatistical/lists' + params , 'no'] + content: 'admin.php?s=/SuperStatistical/lists' + params }); }); $("#superDetail").click(function () { @@ -177,7 +177,7 @@ shadeClose: true, shade: 0.8, area: ['70%', '80%'], - content: ['admin.php?s=/SuperStatistical/superDetail' + params , 'no'] + content: 'admin.php?s=/SuperStatistical/superDetail' + params }); }); //搜索功能 diff --git a/Application/Admin/View/SuperStatistical/lists.html b/Application/Admin/View/SuperStatistical/lists.html index 3a06bfc8b..454a946b2 100644 --- a/Application/Admin/View/SuperStatistical/lists.html +++ b/Application/Admin/View/SuperStatistical/lists.html @@ -17,6 +17,9 @@ -
+
diff --git a/Application/Admin/View/SuperStatistical/superDetail.html b/Application/Admin/View/SuperStatistical/superDetail.html index f1d3b5177..cd1885c21 100644 --- a/Application/Admin/View/SuperStatistical/superDetail.html +++ b/Application/Admin/View/SuperStatistical/superDetail.html @@ -17,6 +17,9 @@ -
+
diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index b079ee597..8cfa6ccb3 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -181,7 +181,9 @@ class HomeController extends Controller 'flooring_page_video', 'flooring_page_video_cover', 'supersign_status', - 'ios_video_top' + 'ios_video_top', + 'stable_status', + 'stable_url', ]; $map = ['id' => intval($gameId)]; $game = M('game', 'tab_')->field($columns)->where($map)->find(); diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index 8030e659d..65f3a4b35 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -261,13 +261,6 @@
• 至尊下载:永不闪退、不丢数据稳定有保障
• 同一设备安装一次可在一年内无限次下载重装
- - - - - - - diff --git a/Data/update.sql b/Data/update.sql index 67f2f4060..b7f6b7c8c 100644 --- a/Data/update.sql +++ b/Data/update.sql @@ -906,4 +906,9 @@ CREATE TABLE `tab_repair_pay` ( `create_time` int(11) NOT NULL DEFAULT '0', `type` int(11) DEFAULT '0' COMMENT '0通知到账 1补单记录', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT='通知到账补单'; \ No newline at end of file +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT='通知到账补单'; + +ALTER TABLE `tab_game` +ADD COLUMN `stable_status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '稳定版状态'; +ALTER TABLE `tab_game` +ADD COLUMN `stable_url` varchar(150) NOT NULL DEFAULT '' COMMENT '稳定版链接'; \ No newline at end of file