From 4a23e1dd8a6a578aaf58b9816fb593a7cb0bbfac Mon Sep 17 00:00:00 2001 From: zyx Date: Thu, 24 Oct 2019 15:03:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=AE=A1=E7=90=86bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/Controller/TestResourceController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Home/Controller/TestResourceController.class.php b/Application/Home/Controller/TestResourceController.class.php index 820581c44..fe03d36c2 100644 --- a/Application/Home/Controller/TestResourceController.class.php +++ b/Application/Home/Controller/TestResourceController.class.php @@ -197,6 +197,7 @@ class TestResourceController extends BaseController M('protect_log_read', 'tab_')->startTrans(); //事物 try { + $arrUserId = array_column($data,'id'); $logId = implode(',',$arrUserId); @@ -214,7 +215,7 @@ class TestResourceController extends BaseController $addData = []; $k = 0; foreach($arrUserId as $key => $value) { - if (in_array($value['id'],$upsetData)) { + if (in_array($value,$upsetData)) { continue; } else { $addData[$k]['log_id'] = $value;