|
|
|
@ -1756,8 +1756,12 @@ class ApplyController extends BaseController
|
|
|
|
|
public function getDownloadUrl()
|
|
|
|
|
{
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promote['id'], 'game_id' => $gameId])->find();
|
|
|
|
|
if ($promoteId == 0) {
|
|
|
|
|
$promoteId = $promote['id'];
|
|
|
|
|
}
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promoteId, 'game_id' => $gameId])->find();
|
|
|
|
|
$game = M('game', 'tab_')->field(['icon'])->where(['id' => $gameId])->find();
|
|
|
|
|
if ($apply == null) {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
@ -1793,8 +1797,12 @@ class ApplyController extends BaseController
|
|
|
|
|
public function getLandingPageUrl()
|
|
|
|
|
{
|
|
|
|
|
$gameId = I('game_id', 0);
|
|
|
|
|
$promoteId = I('promote_id', 0);
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promote['id'], 'game_id' => $gameId])->find();
|
|
|
|
|
if ($promoteId == 0) {
|
|
|
|
|
$promoteId = $promote['id'];
|
|
|
|
|
}
|
|
|
|
|
$apply = M('apply', 'tab_')->where(['promote_id' => $promoteId, 'game_id' => $gameId])->find();
|
|
|
|
|
$game = M('game', 'tab_')->field(['icon'])->where(['id' => $gameId])->find();
|
|
|
|
|
if ($apply == null) {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|