From c4b03c2a7d08740626a1c54dbe251b5efe2a272b Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Wed, 11 Mar 2020 16:52:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E4=B8=8B?= =?UTF-8?q?=E7=B4=9A=E6=B8=B8=E6=88=B2=E7=84=A1=E6=B3=95=E9=A1=AF=E7=A4=BA?= =?UTF-8?q?=E6=8E=A8=E5=BB=A3=E5=93=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/ApplyController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Home/Controller/ApplyController.class.php b/Application/Home/Controller/ApplyController.class.php index 76fe0b534..0c9fb0083 100644 --- a/Application/Home/Controller/ApplyController.class.php +++ b/Application/Home/Controller/ApplyController.class.php @@ -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;