|
|
|
@ -2917,7 +2917,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$field = $fieldUC . ',' . $fieldUI;
|
|
|
|
|
$subQuery = M('user_play_data_count', 'tab_')->alias('uc')
|
|
|
|
|
->field($field)
|
|
|
|
|
->join('tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id')
|
|
|
|
|
->join('left join tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id')
|
|
|
|
|
->where($map)
|
|
|
|
|
->group('uc.role_id,uc.server_id,uc.game_id')
|
|
|
|
|
->buildSql();
|
|
|
|
@ -2927,7 +2927,7 @@ class DownloadController extends BaseController {
|
|
|
|
|
$total = [];
|
|
|
|
|
$total = M('user_play_data_count', 'tab_')->alias('uc')
|
|
|
|
|
->field($fieldUC)
|
|
|
|
|
->join('tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id')
|
|
|
|
|
->join('left join tab_user_play_info as ui on ui.game_id = uc.game_id and ui.server_id = uc.server_id and ui.role_id = uc.role_id')
|
|
|
|
|
->where($map)
|
|
|
|
|
->find();
|
|
|
|
|
foreach ($roles as $role) {
|
|
|
|
|