|
|
|
@ -881,7 +881,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
$account = I('account', '');
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
|
|
|
|
|
$game = M('game', 'tab_')->field(['id', 'unique_code', 'game_name'])->where(['game_id' => $gameId])->find();
|
|
|
|
|
$game = M('game', 'tab_')->field(['id', 'unique_code', 'game_name', 'sdk_version'])->where(['id' => $gameId])->find();
|
|
|
|
|
|
|
|
|
|
$client = new AggregateClient();
|
|
|
|
|
$result = $client->api('game-recharge-detail', [
|
|
|
|
@ -891,7 +891,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
'account' => $account,
|
|
|
|
|
'order_number' => $orderNumber,
|
|
|
|
|
'role_name' => $roleName,
|
|
|
|
|
'device_type' => I("sdk_type", 0),
|
|
|
|
|
'device_type' => $game['sdk_version'],
|
|
|
|
|
'page' => $p,
|
|
|
|
|
'limit' => $limit,
|
|
|
|
|
]);
|
|
|
|
@ -899,7 +899,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
$count = 0;
|
|
|
|
|
$total = '0.00';
|
|
|
|
|
$records = [];
|
|
|
|
|
if ($result['code'] != '0000') {
|
|
|
|
|
if ($result['code'] == '0000') {
|
|
|
|
|
$count = $result['data']['count'];
|
|
|
|
|
$total = $result['data']['total'];
|
|
|
|
|
$records = $result['data']['records'];
|
|
|
|
@ -907,6 +907,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach ($records as $key => $record) {
|
|
|
|
|
$records[$key]['game_name'] = $game['game_name'];
|
|
|
|
|
$records[$key]['rom_platform'] = $record['rom_platform'] == 'android' ? '安卓' : 'IOS';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
@ -931,6 +932,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->assign('game', $game);
|
|
|
|
|
$this->assign('pagination', $page);
|
|
|
|
|
$this->assign('total', $total);
|
|
|
|
|
$this->assign('records', $records);
|
|
|
|
|