Wechat SDK
aoiujz / wechatsdk Goto Github PK
View Code? Open in Web Editor NEW微信SDK
微信SDK
Wechat SDK
自定义菜单是哪个?
dump($opts)可得:
$opts=array(7) {
[13] => int(30)
[19913] => int(1)
[64] => bool(false)
[81] => bool(false)
[10002] => string(207) "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=gPbWYDyfbLc-dQz7LgXBUSXR3M9-U7GVl8lsEKErRFDq3G5igxgrUXILSRTRGf-ilFcP6U5glzsmW1660bp0w1-vRYi3FuzGASWkx-xbpwCjUu0dWAg9iezQajBzRHSWJIAbAFAEDV"
[47] => int(1)
[10015] => string(45) "image@D:\xampp\htdocs\xueche\Public\image.jpg"
}
执行:$data = curl_exec($ch);
腾讯服务器返回:'{"errcode":41005,"errmsg":"media data missing"}'
"D:\xampp\htdocs\xueche\Public\image.jpg"本地可以访问,地址没错,问题还会出在什么地方?
注:本地环境:PHP Version 5.6.12
24 public function index($id = ''){
//调试
……
}
随便测试了下,比如那个WechatAuth userInfo接口没有带access_token,http方法写成https 用的时候又是http。。。正在使用中,有问题再反馈...
貌似是wechatauth比wechat类更多一些接口,我还以为是两个互补的类。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.