企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
2.获取用户资料 ~~~ protected function getuser($openid) { $token = $this->gettoken(); $url = 'https://api.weixin.qq.com/cgi-bin/user/info?access_token=' . $token . '&openid=' . $openid . '&lang=zh_CN'; $obj = $this->curl_get($url); return $obj; } ~~~ 2.获取用户列表 ~~~ protected function userlist() { $token = $this->gettoken(); $url = 'https://api.weixin.qq.com/cgi-bin/user/get?access_token=' . $token; $obj = $this->curl_get($url); return $obj; } ~~~