|
|
|
@ -7,6 +7,7 @@ use Admin\Model\ApplyModel;
|
|
|
|
|
use Think\Model;
|
|
|
|
|
use Base\Facade\Request;
|
|
|
|
|
use Base\Service\ApplyService;
|
|
|
|
|
use Base\Service\PromoteService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -1781,6 +1782,16 @@ class ApplyController extends BaseController
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
if (!$promoteService->canPresidentApplyGame($promote)) {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|
'status' => 0,
|
|
|
|
|
'message' => '请联系市场专员开启',
|
|
|
|
|
'data' => [
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$icon = Request::getHost() . '/' . get_cover($game['icon'], 'path');
|
|
|
|
|
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
@ -1811,6 +1822,7 @@ class ApplyController extends BaseController
|
|
|
|
|
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) {
|
|
|
|
@ -1822,6 +1834,16 @@ class ApplyController extends BaseController
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
if (!$promoteService->canPresidentApplyGame($promote)) {
|
|
|
|
|
$this->ajaxReturn([
|
|
|
|
|
'status' => 0,
|
|
|
|
|
'message' => '请联系市场专员开启',
|
|
|
|
|
'data' => [
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$icon = Request::getHost() . '/' . get_cover($game['icon'], 'path');
|
|
|
|
|
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|