Merge branch 'release-1.0.0' into dev

# Conflicts:
#	Application/Admin/View/BehaviorLog/index.html
#	Application/Home/Controller/QueryController.class.php
master
liuweiwen 5 years ago
commit 7293bf158f

@ -1198,3 +1198,18 @@ function getChildGameAddPermission($promoteId)
{ {
return D('Promote')->where(array('id' => $promoteId))->getField('child_game_permission'); return D('Promote')->where(array('id' => $promoteId))->getField('child_game_permission');
} }
function gameSearch($relationGameId, $sdkVersion)
{
$map = '1 = 1';
if ($relationGameId != 0) {
$map['relation_game_id'] = $relationGameId;
}
if ($sdkVersion != 0) {
$map['sdk_version'] = $sdkVersion;
}
$gameIds = M('game', 'tab_')->where($map)->getField('id', true);
$gameIds = $gameIds ?? [-1];
return $gameIds;
}

@ -1188,6 +1188,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
empty(I('server_id')) || $map['tab_pay_info.server_id'] = I('server_id'); empty(I('server_id')) || $map['tab_pay_info.server_id'] = I('server_id');
@ -1382,6 +1385,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
$subMap['game_id'] = ['in', $gameId1]; $subMap['game_id'] = ['in', $gameId1];
} }
@ -1504,6 +1510,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
if ($serverId > 0) { if ($serverId > 0) {
@ -1603,6 +1612,9 @@ class DownloadController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId1 = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId1)) {
$gameId1 = [-100];
}
$map['game_id'] = ['in', $gameId1]; $map['game_id'] = ['in', $gameId1];
} }
if ($serverId != 0) { if ($serverId != 0) {
@ -1896,11 +1908,11 @@ class DownloadController extends BaseController {
->limit(($i-1)*$perSize ,$perSize)->select(); ->limit(($i-1)*$perSize ,$perSize)->select();
foreach($data as $key => $v) { foreach($data as $key => $v) {
$v['create_time'] = date('Y-m-d H:i:s',$v['create_time']); $v['create_time'] = date('Y-m-d H:i:s',$v['create_time']);
$promoteInfo = M('promote','tab_')->field("nickname")->where(['id' => intval($v['promote_id'])])->find(); $promoteInfo = M('promote','tab_')->field("account")->where(['id' => intval($v['promote_id'])])->find();
$serverId = $v['server_id']; $serverId = $v['server_id'];
$gameId = $v['game_id']; $gameId = $v['game_id'];
$serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId,'game_id'=>$gameId])->find(); $serverInfo = M('server','tab_')->field('server_name')->where(['server_num'=>$serverId,'game_id'=>$gameId])->find();
$v['promote_id']= $promoteInfo['nickname']; $v['promote_id']= $promoteInfo['account'];
$csvData['extend'] = $this->encryption($v['extend']); $csvData['extend'] = $this->encryption($v['extend']);
$csvData['create_time'] = $v['create_time']; $csvData['create_time'] = $v['create_time'];
$csvData['user_account'] = $v['user_account']; $csvData['user_account'] = $v['user_account'];

@ -42,6 +42,9 @@ class PlayersController extends BaseController {
$gameMap['sdk_version'] = $sdkVersion; $gameMap['sdk_version'] = $sdkVersion;
} }
$gameId = M('game', 'tab_')->where($gameMap)->getField('id', true); $gameId = M('game', 'tab_')->where($gameMap)->getField('id', true);
if(empty($gameId)) {
$gameId = [100000];
}
$map['game_id'] = ['in', $gameId]; $map['game_id'] = ['in', $gameId];
} }
if (!empty($serverId)) { if (!empty($serverId)) {
@ -89,8 +92,8 @@ class PlayersController extends BaseController {
//分页 //分页
$parameter['p'] = $page; $parameter['p'] = $page;
$parameter['row'] = $row; $parameter['row'] = $row;
$parameter['begtime'] = $initBegTime; $parameter['begtime'] = I('begtime');
$parameter['endtime'] = $initEndTime; $parameter['endtime'] = I('endtime');
$parameter['relation_game_id'] = $relationGameId; $parameter['relation_game_id'] = $relationGameId;
$parameter['sdk_version'] = $sdkVersion; $parameter['sdk_version'] = $sdkVersion;
$parameter['server_id'] = $serverId; $parameter['server_id'] = $serverId;

@ -261,7 +261,7 @@
<?php if ($game['supersign_status'] ==1):?> <?php if ($game['supersign_status'] ==1):?>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div> <div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
<?php else:?> <?php else:?>
<div class="blue-btn" onclick="layer.msg('该游戏已关闭超级签下载');">¥10至尊下载</div> <div class="blue-btn" onclick="layer.msg('已售空,我们正在努力上货中~');">¥10至尊下载</div>
<?php endif;?> <?php endif;?>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div> <div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
<?php else:?> <?php else:?>

Loading…
Cancel
Save