From 0a9efe02caf5d7a05519e1b23153c59a1c56243e Mon Sep 17 00:00:00 2001 From: zhanglingsheng Date: Tue, 26 Nov 2019 09:45:14 +0800 Subject: [PATCH] =?UTF-8?q?oa=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PromoteController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 68a8ff7a3..091cec58a 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -124,7 +124,7 @@ unset($_REQUEST['parent_id']); $re_data = json_decode($re_data,true)['data']; foreach($list_data as $k => $v) { - if(in_array($v['account'], $re_data)) + if(array_key_exists($v['account'], $re_data)) { $list_data[$k]['oa_associated'] = $re_data[$v['account']]; M('promote','tab_')->where(['id' => $v['id']])->setField(['oa_associated' => $re_data[$v['account']]]);