private function getWechatUserInfo($openId) { //如果开通的不是高级版微防伪,直接返回 if ($this->companyInfo['serviceId'] != 2) { return false; } //如果接口信息不完整,直接返回 if ($this->companyInfo['weixin_AppId'] == '' || $this->companyInfo['weixin_AppSecret'] == '') { return false; } $weObj = new Wechat(); if ($weObj->checkAuth($this->companyInfo['weixin_AppId'], $this->companyInfo['weixin_AppSecret'])) { $userInfo = $weObj->getUserInfo($openId); $userInfo['CreateTime'] = date("Y-m-d H:i:s", $userInfo['CreateTime']); if ($userInfo) { return $userInfo; } } return false; }