diff --git a/Application/Admin/Common/function.php b/Application/Admin/Common/function.php index 41e989032..eca80c14c 100644 --- a/Application/Admin/Common/function.php +++ b/Application/Admin/Common/function.php @@ -552,8 +552,13 @@ function getGameByName($game_name=null, $sdk_version=null) if ($sdk_version) { $map['sdk_version'] = $sdk_version; } - $result = D("Game")->where($map)->select(); - return $result; + $result = D("Game")->field('id')->where($map)->select(); + if(empty($result)) { + return [['id' => -1]]; + }else + { + return $result; + } } function getTopPromote($promote_id) diff --git a/Application/Admin/Controller/AjaxController.class.php b/Application/Admin/Controller/AjaxController.class.php index 4604dce71..4dbe626e8 100644 --- a/Application/Admin/Controller/AjaxController.class.php +++ b/Application/Admin/Controller/AjaxController.class.php @@ -96,6 +96,17 @@ class AjaxController extends ThinkController{ $this->AjaxReturn($data); } + public function getGameVersion($game_name="") + { + if ($game_name) { + $map['relation_game_name'] = $game_name; + }else { + $this->AjaxReturn([]); + } + $data = M('Game','tab_')->field('sdk_version')->where($map)->select(); + $this->AjaxReturn($data); + } + /** * 获取游戏折扣 * @param $game_id diff --git a/Application/Admin/View/BehaviorLog/index.html b/Application/Admin/View/BehaviorLog/index.html index 97b53ae2f..c52ba5bcc 100644 --- a/Application/Admin/View/BehaviorLog/index.html +++ b/Application/Admin/View/BehaviorLog/index.html @@ -68,8 +68,8 @@
@@ -430,7 +430,7 @@ }); $("#promote_level").change(); - var game_server = "{:I('server_name')}"; + var game_server = "{:I('server_name')}"; $("#sdk_version").change(function(){ $.ajax({ url:"{:U('Ajax/getGmeServer')}", diff --git a/Application/Admin/View/Support/lists.html b/Application/Admin/View/Support/lists.html index 8c82c84d7..296f0c202 100644 --- a/Application/Admin/View/Support/lists.html +++ b/Application/Admin/View/Support/lists.html @@ -32,7 +32,7 @@
-

扶持发放

+

资源发放

说明:记录所有扶持发放的数据

@@ -74,11 +74,11 @@
- +
@@ -111,7 +111,7 @@ 区服 角色名 申请额度 - 扶持类型 + 资源类型 备注 申请时间 可用额度 @@ -134,7 +134,7 @@ {$data['server_name']} {$data['role_name']} {$data['apply_resource']} - 新增扶持后续扶持 + 新增资源后续资源 {$data['apply_remark']} {:date('Y-m-d H:i:s',$data['create_time'])} @@ -170,7 +170,7 @@
- 导出 + 导出 {$_page|default=''}
diff --git a/Application/Admin/View/TestResource/supportNumberList.html b/Application/Admin/View/TestResource/supportNumberList.html index f996a2501..c95054689 100644 --- a/Application/Admin/View/TestResource/supportNumberList.html +++ b/Application/Admin/View/TestResource/supportNumberList.html @@ -33,11 +33,11 @@