master
ELF 5 years ago
parent e73c269876
commit fa4de7ece5

@ -3873,13 +3873,14 @@ class ExportController extends Controller
$this->meta_title = '留存统计'; $this->meta_title = '留存统计';
$start = I('start', date('Y-m-d',strtotime('-7 day'))); $start = I('start', date('Y-m-d',strtotime('-7 day')));
$end = empty(I('end')) ? time_format(time(),'Y-m-d') : I('end'); $end = empty(I('end')) ? time_format(time(),'Y-m-d') : I('end');
$gameId = I('game_id', 0);
$promoteId = I('promote_id', 0); $promoteId = I('promote_id', 0);
$baseGameId = I('game_id', 0);
$deviceType = I('device_type', '');
$status = true; $status = true;
$data = false; $data = false;
$error = ''; $error = '';
if ($gameId == 0) { if ($baseGameId == 0) {
$error = '请选择游戏!'; $error = '请选择游戏!';
$status = false; $status = false;
} }
@ -3890,6 +3891,10 @@ class ExportController extends Controller
$status = false; $status = false;
} }
if ($status) { if ($status) {
$baseGame = M('base_game', 'tab_')->where(['id' => $baseGameId])->find();
$gameId = $deviceType == 'android' ? $baseGame['android_game_id'] : $baseGame['ios_game_id'];
$client = new Client([ $client = new Client([
'base_uri' => C('TASK_URL'), 'base_uri' => C('TASK_URL'),
'timeout' => 10.0, 'timeout' => 10.0,

Loading…
Cancel
Save