Merge branch 'promote/oa' of wmtx/platform into master

OA管理员绑定
master
廖金灵 5 years ago committed by Gogs
commit dd2b81b6a8

@ -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 {

Loading…
Cancel
Save