Home  >  Article  >  Backend Development  >  thinkphph微信用户信息推送在哪里设置?

thinkphph微信用户信息推送在哪里设置?

WBOY
WBOYOriginal
2016-06-06 20:25:481314browse

thinkphph微信用户信息推送在哪里设置?

回复内容:

thinkphph微信用户信息推送在哪里设置?

是这样吗?
$token = ''; //微信后台填写的TOKEN
/ 加载微信SDK /
$wechat = new Wechat($token);
/ 获取请求信息 /
$data = $wechat->request();
if($data && is_array($data)){

<code>//在这里你可以分析用户发送过来的数据来决定需要做出什么样的回复
$content = ''; //回复内容,回复不同类型消息,内容的格式有所不同
$type    = ''; //回复消息的类型
/* 响应当前请求(自动回复) */
$wechat->response($content, $type);</code>

}

来自:http://document.thinkphp.cn/manual_3_2.html#wechat

thinkphp默认没有微信模块,需要自己动手写

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn