|
|
@ -167,7 +167,7 @@ class TestingResourceController extends BaseController
|
|
|
|
'pay_status' => 1,
|
|
|
|
'pay_status' => 1,
|
|
|
|
'_string' => '(' . implode(' or ', $spendOrWhere) . ')',
|
|
|
|
'_string' => '(' . implode(' or ', $spendOrWhere) . ')',
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$spendList = M('spend', 'tab_')->field('sum(pay_amount) amount, game_id, game_player_id')->where($spendOrWhere)->group('game_id,game_player_id')->select();
|
|
|
|
$spendList = M('spend', 'tab_')->field('sum(pay_amount) amount, game_id, game_player_id')->where($spendCondition)->group('game_id,game_player_id')->select();
|
|
|
|
foreach ($spendList as $item) {
|
|
|
|
foreach ($spendList as $item) {
|
|
|
|
$spendItems[$this->getGameRoleId($item['game_id'], $item['game_player_id'])] = $item['amount'];
|
|
|
|
$spendItems[$this->getGameRoleId($item['game_id'], $item['game_player_id'])] = $item['amount'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|