dodgepudding / wechat-php-sdk

微信公众平台php开发包, weixin developer SDK.
4.44k stars 2.33k forks source link

获取access_token时AppSecret错误,或者access_token无效 #289

Open dingjia opened 8 years ago

dingjia commented 8 years ago

使用了TPwechat.class,php 载入缓存,但是依然提示获取access_token时AppSecret错误,或者access_token无效。如果注释掉 /* * 重载获取缓存 * @param string $cachename * @return mixed / protected function getCache($cachename){ return S($cachename); }

中的return S($cachename); 就正常了,求助

cainiaoDJ commented 7 years ago

我第一次接触这样的框架,没有找到S这个function 在哪里定义,可否告知下?

nongzhenli commented 6 years ago

@cainiaoDJ 这个是thinkphp 封装的S方法,去看下手册有写到

cainiaoDJ commented 6 years ago

@nongzhenli 谢谢