Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于验证 #31

Open
JimChenWYU opened this issue Sep 12, 2015 · 8 comments
Open

关于验证 #31

JimChenWYU opened this issue Sep 12, 2015 · 8 comments

Comments

@JimChenWYU
Copy link

wechat类内构造函数你以1个数组为参数,然而你实例化时是却以4个参数传输,所以验证时一直不行,改了就好。

@qiangqiangsir
Copy link

你好,我是初学者,我的URL填写为“http://4.17896013057.applinzi.com/example/server.php”,token 改为了“weixin”,实例化时也修改了相应内容
$wechat = new MyWechat(array(
'weixin' => $token,
'VAv5kjJk7GDTMWf0qlzRuTvbU75LJAjF5GYFCA448ET' => $encodingAesKey,
'wx9797764f924e0423' => $appId,
'debug' => $debugMode
));
我甚至在构造函数里也修改了默认值,可还是提示验证失败,请问是什么原因呢?

@JimChenWYU
Copy link
Author

JimChenWYU commented Jul 10, 2018

@qiangqiangsir lol... 3年了,我忘了,作者也没有持续维护这个库,推荐你用easywechat,使用前通读一下微信开放平台的文档,配合着看一下官方的SDK(虽然官方SDK写得很烂...),之后再使用easywechat,不然你会用得很痛苦

@geekdadley
Copy link

geekdadley commented Jul 10, 2018 via email

@qiangqiangsir
Copy link

这是微信自动生成的appID和 随机EncodingAESKey @duduzhu

@JimChenWYU
Copy link
Author

@qiangqiangsir 03e5842

@qiangqiangsir
Copy link

qiangqiangsir commented Jul 11, 2018

我看到这个了,也已经修改为自己的token 和 appId了 @JimChenWYU ,原作者的代码也已经把这个bug改过来了;问个简单的问题哈,如何调试这个代码呢?我自己去查找问题; 我在网扒拉好几天了 ,微信web调试工具也下载了,但是没有具体的使用指导 @duduzhu @JimChenWYU

@geekdadley
Copy link

@qiangqiangsir 你修改的不对。我已经说过了,没有那么奇怪的key,你填在key的位置的东西,其实应该填在value上。

@geekdadley
Copy link

geekdadley commented Jul 11, 2018

$wechat = new MyWechat(array(
'weixin' => $token,
'aeskey'=>'VAv5kjJk7GDTMWf0qlzRuTvbU75LJAjF5GYFCA448ET',
'appid'=>'wx9797764f924e0423' ,
'debug' => $debugMode
));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants