修改bug

master
ELF 5 years ago
parent 56a97f7eef
commit 13cb680955

@ -243,8 +243,10 @@ class HomeController extends Controller
} }
$serviceQQ = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value']; $serviceQQ = M("config", "sys_")->field('value')->where("name='APP_QQ'")->find()['value'];
$this->assign("serviceQQ", $serviceQQ);
$ssgUrl = C('DOMAIN_OFFICIAL_MOBILE') . '/mobile.php/Ssg/pay/game_id/' . $game['id'] . '/promote_id/' . $promoteId;
$this->assign("serviceQQ", $serviceQQ);
$this->assign('isNewIos', $isNewIos); $this->assign('isNewIos', $isNewIos);
$this->assign('downloadUrl', $downloadUrl); $this->assign('downloadUrl', $downloadUrl);
$this->assign('isIOS13', $isIOS13); $this->assign('isIOS13', $isIOS13);
@ -254,6 +256,7 @@ class HomeController extends Controller
$this->assign('apply', $apply); $this->assign('apply', $apply);
$this->assign('game', $game); $this->assign('game', $game);
$this->assign('promoteId', $promoteId); $this->assign('promoteId', $promoteId);
$this->assign('ssgUrl', $ssgUrl);
$cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__)); $cur_url = base64_encode(base64_encode("http://" . $_SERVER['HTTP_HOST'] . __SELF__));
$this->assign('cur_url', $cur_url); $this->assign('cur_url', $cur_url);
if ($isIOS) { if ($isIOS) {

@ -273,7 +273,7 @@
<?php endif;?> <?php endif;?>
<?php if (($game['download_ways'] & 4) == 4):?> <?php if (($game['download_ways'] & 4) == 4):?>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div> <div class="blue-btn" onclick="location.href='{$ssgUrl}'">¥10至尊下载</div>
<?php endif;?> <?php endif;?>
<?php if (($game['download_ways'] & 1) == 1):?> <?php if (($game['download_ways'] & 1) == 1):?>

Loading…
Cancel
Save