修改wechat.php,中如下的内容
$options = array(
'token'=>'sndnvaps', //填写你设定的key
'encodingaeskey'=>'encodingaeskey' //填写加密用的EncodingAESKey,如接口为明文模式可忽略
'appid'=>'wxdk1234567890', //填写高级调用功能的app id
'appsecret'=>'xxxxxxxxxxxxxxxxxxx' //填写高级调用功能的密钥
);
URL:http://host:port/wechat-mp/wechat.php
Token:sndnvaps
验证接口配置信息时把 wechat.php 中下面这行代码取消注释,验证完后加上注释
$weObj->valid();