-
Notifications
You must be signed in to change notification settings - Fork 351
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
Comments
你好,我是初学者,我的URL填写为“http://4.17896013057.applinzi.com/example/server.php”,token 改为了“weixin”,实例化时也修改了相应内容 |
@qiangqiangsir lol... 3年了,我忘了,作者也没有持续维护这个库,推荐你用easywechat,使用前通读一下微信开放平台的文档,配合着看一下官方的SDK(虽然官方SDK写得很烂...),之后再使用easywechat,不然你会用得很痛苦 |
$wechat = new MyWechat(array(
'weixin' => $token,
'VAv5kjJk7GDTMWf0qlzRuTvbU75LJAjF5GYFCA448ET' => $encodingAesKey,
'wx9797764f924e0423' => $appId,
'debug' => $debugMode
));
这个有问题吧,为什么会有 'wx9797764f924e0423' , 'VAv5kjJk7GDTMWf0qlzRuTvbU75LJA
jF5GYFCA448ET' 这么奇怪的字段名?
你是不是key value写反了
…On Tue, Jul 10, 2018 at 4:24 PM qiangqiangsir ***@***.***> wrote:
你好,我是初学者,我的URL填写为“
http://4.17896013057.applinzi.com/example/server.php”,token
改为了“weixin”,实例化时也修改了相应内容
$wechat = new MyWechat(array(
'weixin' => $token,
'VAv5kjJk7GDTMWf0qlzRuTvbU75LJAjF5GYFCA448ET' => $encodingAesKey,
'wx9797764f924e0423' => $appId,
'debug' => $debugMode
));
我甚至在构造函数里也修改了默认值,可还是提示验证失败,请问是什么原因呢?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-p7x_YC84oL3nIeVTvgN4tdKobVE3uks5uFGShgaJpZM4F8Quj>
.
|
这是微信自动生成的appID和 随机EncodingAESKey @duduzhu |
我看到这个了,也已经修改为自己的token 和 appId了 @JimChenWYU ,原作者的代码也已经把这个bug改过来了;问个简单的问题哈,如何调试这个代码呢?我自己去查找问题; 我在网扒拉好几天了 ,微信web调试工具也下载了,但是没有具体的使用指导 @duduzhu @JimChenWYU |
@qiangqiangsir 你修改的不对。我已经说过了,没有那么奇怪的key,你填在key的位置的东西,其实应该填在value上。 |
|
wechat类内构造函数你以1个数组为参数,然而你实例化时是却以4个参数传输,所以验证时一直不行,改了就好。
The text was updated successfully, but these errors were encountered: