l306287405 / wechat3rd Goto Github PK
View Code? Open in Web Editor NEW微信开放平台第三方平台Golang SDK.
微信开放平台第三方平台Golang SDK.
category.go的GetMiniProgramAuditCategory(),url没有/cgi-bin
现在代码里的check处理。会强行验证为32长度。其实现在消息的验证Token可以不是32位。这里建议调整下。
1.无限制小程序码还缺了几个参数,你现在的无限制小程序码接口的参数其实是有限制的那个接口,详情见官方文档
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/qr-code/getUnlimitedQRCode.html
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/qrcode-link/qr-code/getQRCode.html
2.小程序二维码不打算实现了吗?
GetCodePrivacyInfo: 获得隐私接口检测结果这个接口错了不是post请求是get请求,
errcode
:
43001
errmsg
:
"require GET method, hint: [1b00760a-e112-438d-990d-acf30af38b8a] rid: 6464d5a9-3c3cb5e9-19df1f18"
我看你源码是内部直接保存在指定的某个位置然后返回一个路径,但是这样不够灵活,我建议直接返回二维码图片的byte数组,至于要怎么处理这个数据就交给上层业务代码了
官方给的返回实例里面是这样的
{
"errcode": 0, // 状态码,0成功,其他失败
"errmsg": "OK" // 错误信息
"taskid": "xxxxx". // 任务id,后面query查询需要用到
"authorize_url": "https://mp.weixin.qq.com/xxxx", // 给用户扫码认证的验证url
"status": 0 // 任务的状态
}
但是实际应拿到的是这样
errcode: 0
errmsg: "create task ok"
少了taskid和authorize_url"还有status就无法获取下一步,我查看了FastRegisterPersonalWeapp的写法,里面最后
// FastRegisterPersonalWeapp 快速注册个人小程序
//https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html
func (s *Server) FastRegisterPersonalWeapp(req *FastRegisterPersonalWeappReq) (resp *FastRegisterPersonalWeappResp) {
var (
p = make(url.Values)
token string
err error
)
resp = &FastRegisterPersonalWeappResp{}
token, err = s.Token()
if err != nil {
resp.Err(err)
return
}
p.Set("action", "create")
p.Set("component_access_token", token)
resp.Err(core.PostJson(PersonalWeAPPRegisterUrl+p.Encode(), req, resp))
return
}
这里的resp.Err(core.PostJson(PersonalWeAPPRegisterUrl+p.Encode(), req, resp))好像是返回了错误,但是
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.