落地页修改

master
sunke 5 years ago
commit a37bafb372

@ -1111,10 +1111,15 @@ class PromoteController extends ThinkController
$game_id = $codeRes['game_id'];
$gameInfo = M('game','tab_')->field('game_name')->where(['id'=>$game_id])->find();
$params['game_name'] = $gameInfo['game_name'];
$expires_in = $codeRes['expires_in'];
if(!empty($codeRes)) {
$expires_in = $codeRes['expires_in'];
}else {
$expires_in = -100;
}
if($expires_in == 0) {
$params['expires_in'] = "永久性";
}else {
}else if($expires_in > 0) {
$params['expires_in'] = $expires_in;
}
$params['created_at'] = $codeRes['created_at'];

Loading…
Cancel
Save