Merge branch 'release-1.0.0' of 47.111.118.107:wmtx/platform into release-1.0.0

master
ELF 5 years ago
commit 8cdf259fdf

@ -3512,23 +3512,24 @@ class ExportController extends Controller
$start_time = $start = strtotime($start); $start_time = $start = strtotime($start);
$end_time = $end = strtotime($end) + 86400; $end_time = $end = strtotime($end) + 86400;
if (is_file(RUNTIME_PATH.'/access_data_ltv.txt')) { // if (is_file(RUNTIME_PATH.'/access_data_ltv.txt')) {
$filetxt = file_get_contents(RUNTIME_PATH.'/access_data_ltv.txt'); // $filetxt = file_get_contents(RUNTIME_PATH.'/access_data_ltv.txt');
$data = json_decode($filetxt, true); // $data = json_decode($filetxt, true);
} // }
$map = " 1=1 "; $map = " 1=1 ";
$game_map = ""; $game_map = "";
if (isset($_REQUEST['game_name'])) { if (isset($_REQUEST['game_name']) && isset($_REQUEST['server_name'])) {
$game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')); $game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id'));
$map .= " AND game_id in (" . implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')) . ")"; $map .= " AND game_id in ({$game_ids})";
$game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id "; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play_info as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id ";
if (isset($_REQUEST['server_name'])) $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' "; if (isset($_REQUEST['server_name'])) $game_map .= " AND upi.server_name = '{$_REQUEST['server_name']}' ";
$game_map .= ") "; $game_map .= ") ";
} } else if (isset($_REQUEST['game_name'])) {
$game_ids = implode(',', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id'));
if (isset($_REQUEST['server_name'])) { $map .= " AND game_id in ({$game_ids})";
$map .= " AND server_name = '{$_REQUEST['server_name']}' "; $game_map = " AND EXISTS (SELECT upi.user_id FROM tab_user_play as upi where upi.game_id in ({$game_ids}) AND upi.user_id = u.id ";
$game_map .= ") ";
} }
// 获取包含的用户id // 获取包含的用户id

@ -65,7 +65,7 @@
<label>链接类型:</label> <label>链接类型:</label>
<select name="link_type"> <select name="link_type">
<option value="0">全部</option> <option value="0">全部</option>
<option value="1">复制下载链接</option> <option value="1">下载链接</option>
<option value="2">落地页下载链接</option> <option value="2">落地页下载链接</option>
</select> </select>
</div> </div>

Loading…
Cancel
Save