From a85c217c6bca79b583712655e0baac3e3e191e26 Mon Sep 17 00:00:00 2001 From: xxxx <2222@qq.com> Date: Mon, 3 Feb 2020 14:51:12 +0800 Subject: [PATCH] =?UTF-8?q?OA=E7=AE=A1=E7=90=86=E5=91=98=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PromoteController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 223d6d0fc..6ac74ba0f 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -111,6 +111,7 @@ class PromoteController extends ThinkController $map['oa_associated'] = I('oa_associated'); $oa_data = []; for ($i = 1; $i > 0; $i++) { + $arr = []; $arr['time'] = time(); $arr['page'] = $i; $arr['pageSize'] = 1000; @@ -120,7 +121,7 @@ class PromoteController extends ThinkController $arr['sign'] = $sign; $re_data = curl_post(C('OA.formalUrl') . '/api/wanmeng/platformAccount', $arr); $re_data = json_decode($re_data, true); - if ($re_data['code'] == 1) { + if (!empty($re_data['data'])) { $oa = $re_data['data']; $oa_data = array_merge($oa_data, $oa); } else {