Merge branch 'hotfix/apply_game' of wmtx/platform into release

修改添加下級游戲無法顯示推廣員bug
master
廖金灵 5 years ago committed by Gogs
commit 5f6bc934a9

@ -1670,7 +1670,7 @@ class ApplyController extends BaseController
$promoteIds = array_column($promotes, 'id');
$oldIds = M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $promoteIds], 'offline_status' => 0])->getField('id', true);
$newPromoteIds = array_diff($promoteIds, $oldIds);
$newPromoteIds = $oldIds && count($oldIds) > 0 ? array_diff($promoteIds, $oldIds) : $promoteIds;
foreach ($promotes as $promote) {
if (in_array($promote['id'], $newPromoteIds)) {
$newPromoteData[] = $promote;

Loading…
Cancel
Save