在一个项目中使用到了thinkphp+wechat.class.php调用微信api,测试发现返回结果no access
我在公众号中的配置是例如:www.test.com/Regis/index
public function index(){
$options = array (
//下面是我的
'token' => 'wexin', // 填写你设定的key
'appid' => '', // 填写高级调用功能的app id
'appsecret' => ''*/
); // 填写高级调用功能的密钥
import('@.ORG.Wechat');
$weObj = new Wechat ($options);
$weObj->valid ();
$type = $weObj->getRev()->getRevType ();
我在微信上面的token可以验证通过,但是测试微信返回结果是no access
在微信公众号上面发关键字回复的话,回复我的公众号出现暂时无法提供服务,请稍后再试
我测试了一整天,换了另外的普通方法,