|
|
|
@ -271,7 +271,7 @@ class PromoteController extends BaseController
|
|
|
|
|
$week = $weekArray[date("w")];
|
|
|
|
|
$match_rules = M("document_pop_rules")
|
|
|
|
|
->field('id,document_route,pop_time')
|
|
|
|
|
->where("(type = 1 and pop_time = {$currentTime}) or (type = 2 and pop_time = {$week})")
|
|
|
|
|
->where("(type = 1 and pop_time = {$currentTime}) or (type = 2 and pop_time = {$week}) or (type = 2 and pop_time = 8)")
|
|
|
|
|
->order("sort asc, id desc")
|
|
|
|
|
->select();
|
|
|
|
|
} else {
|
|
|
|
@ -2129,7 +2129,7 @@ class PromoteController extends BaseController
|
|
|
|
|
$gameId = $_POST['game_id'];
|
|
|
|
|
$promoteId = $_POST['promote_id'];
|
|
|
|
|
$applyService = new ApplyService();
|
|
|
|
|
$applyService->cancelGame($gameId, $promoteId);
|
|
|
|
|
$applyService->offlineGame($gameId, $promoteId);
|
|
|
|
|
recordPromoteLogs('游戏管理','专服管理下架游戏');
|
|
|
|
|
$this->ajaxReturn(['status' => true, 'msg' => '下架成功']);
|
|
|
|
|
}
|
|
|
|
|