批量添加下级游戏bug修复

master
chenxiaojun 5 years ago
parent ddd7b9805f
commit 7f7d054dfc

@ -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;

Loading…
Cancel
Save