weichat_uid)) { return 0; } $userInfo = ThirdWxFacade::getUserInfo($request->weichat_uid); Log::info('getUserInfo', [$userInfo]); $wxUserInfo = $userInfo->getData()->data->datas; Log::info('wxUserInfo', [$wxUserInfo]); Log::info('IP', [$request->ip()]); if (isset($wxUserInfo->id)){ return $login = UserFacade::wxWebLoginOrReg('', $request->ip(), $wxUserInfo, $request->weichat_uid); } // return $userInfo; } public function getJsSdk(Request $request){ $url = $request->url; return ThirdWxFacade::getJsSdk(config('console.thirdWx.weid'), $url); } }