|
|
@ -1523,7 +1523,7 @@ class ApplyController extends BaseController
|
|
|
|
$newPromoteData = [];
|
|
|
|
$newPromoteData = [];
|
|
|
|
if (count($promoteIds) > 0) {
|
|
|
|
if (count($promoteIds) > 0) {
|
|
|
|
foreach ($promoteIds as $value) {
|
|
|
|
foreach ($promoteIds as $value) {
|
|
|
|
$thisPromote = M('apply', 'tab_')->where(array('game_id' => $gameId, 'promote_id' => $value['id']))->count('id');
|
|
|
|
$thisPromote = M('apply', 'tab_')->where(array('game_id' => $gameId, 'promote_id' => $value['id'], 'offline_status' => 0))->count('id');
|
|
|
|
|
|
|
|
|
|
|
|
if (!$thisPromote) {
|
|
|
|
if (!$thisPromote) {
|
|
|
|
$newPromoteData[] = $value;
|
|
|
|
$newPromoteData[] = $value;
|
|
|
|