游戏充值预下单

master
zhanglingsheng 5 years ago
parent 65e1ddbd93
commit 95f7acd6ff

@ -17,11 +17,13 @@ class BehaviorLogController extends ThinkController
$map['extend'] = $params['extend'];
}
if (isset($params['game_name'])) {
$game_id = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['sdk_version']), 'id')];
$game_id = ['in', array_column(getGameByName($params['game_name'], $params['sdk_version']), 'id')];
$map['game_id'] = $game_id;
}
if (isset($params['server_name'])) {
$map['server_name'] = $params['server_name'];
$game_id = M('game', 'tab_')->where(['relation_game_name' => $params['game_name'],'sdk_version' => $params['sdk_version']])->getField('id');
$server_id = M('server', 'tab_')->where(['server_name' => $params['server_name'], 'game_id' => $game_id])->getField('server_num');
$map['server_id'] = $server_id;
}
if (isset($params['user_nickname'])) {
$map['user_nickname'] = $params['user_nickname'];

Loading…
Cancel
Save