$corpid, 'externalUserId' => $externalUserid, 'cursor' => $cursor, 'retry' => $retry, 'access_token' => $accessToken ], 'GetExternalContactDetail'); return false; } # 获取外部联系人详情信息API $getExternalContactUri = config('qyWechat.external_contact_detail'); $getExternalContactUri .= $accessToken . '&external_userid=' . $externalUserid; if($cursor) { $getExternalContactUri .= '&cursor=' . $cursor; } $response = HttpService::httpGet($getExternalContactUri); $responseData = json_decode($response, true); if(isset($responseData['errcode']) && $responseData['errcode']) { if($retry <=5 && $responseData['errcode'] == -1) { $retry++; return ExternalContactService::getExternalContactDetail($corpid, $externalUserid, $cursor, $retry); } Log::logError('获取外部联系人详情信息返回错误码', [ 'response' => $response ], 'ExternalContactDetailGet'); return []; } return $responseData; } }