推广平台>数据管理>充值玩家--更新

master
chenxiaojun 5 years ago
commit 8261512ba3

@ -6,11 +6,30 @@ use Think\Controller;
class PromoteGameRatioController extends ThinkController class PromoteGameRatioController extends ThinkController
{ {
const MODEL_NAME = 'promote_game_ratio';
public function lists() public function lists()
{ {
$params = I('get.'); $params = I('get.');
$promoteAccount = $params['promote_account'] ?? ''; $promoteAccount = $params['promote_account'] ?? '';
$gameId = $params['game_id'] ?? 0; $gameId = $params['game_id'] ?? 0;
$status = $params['status'] ?? ''; $status = $params['status'] ?? '';
$map['_string'] = '1 = 1';
if ($promoteAccount) {
$promoteMap['account'] = $promoteAccount;
$promoteId = M('promote', 'tab_')->where($promoteMap)->getField('id');
$promoteId = $promoteId ?? 0;
$map['promote_id'] = $promoteId;
}
if ($gameId) {
$map['game_id'] = $gameId;
}
if ($status !== '') {
$map['status'] = $status;
}
$field = 'create_time, update_time';
$query = D(self::MODEL_NAME)->getLists();
} }
} }

@ -2,7 +2,7 @@
namespace Admin\Model; namespace Admin\Model;
class PromoteGameRatioModel class PromoteGameRatioModel extends CommentModel
{ {
} }

@ -1201,7 +1201,7 @@ function getChildGameAddPermission($promoteId)
function gameSearch($relationGameId, $sdkVersion) function gameSearch($relationGameId, $sdkVersion)
{ {
$map = '1 = 1'; $map['_string'] = '1 = 1';
if ($relationGameId != 0) { if ($relationGameId != 0) {
$map['relation_game_id'] = $relationGameId; $map['relation_game_id'] = $relationGameId;
} }

Loading…
Cancel
Save