master
ELF 5 years ago
parent 3299266431
commit ef76ed66e6

@ -160,6 +160,7 @@ class GameController extends BaseController
$data['promote_account'] = $promote['account'];
$data['apply_time'] = NOW_TIME;
$data['offline_status'] = 0;
$data['enable_status'] = 2;
$status = false;
if (!$apply) {
@ -218,6 +219,7 @@ class GameController extends BaseController
'promote_account' => $loginPromote['account'],
'apply_time' => NOW_TIME,
'offline_status' => 0,
'enable_status' => 2,
'sdk_version' => $game['sdk_version'],
'game_id' => $game['id'],
'game_name' => $game['game_name'],
@ -236,6 +238,7 @@ class GameController extends BaseController
$data['promote_account'] = $loginPromote['account'];
$data['apply_time'] = NOW_TIME;
$data['offline_status'] = 0;
$data['enable_status'] = 2;
M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $appliedPromoteIds]])->save($data);
}

Loading…
Cancel
Save