Git Product home page Git Product logo

wechat3rd's People

Contributors

ithaiq avatar l306287405 avatar rebellioncry avatar virteman avatar zhyc9de avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wechat3rd's Issues

关于wechat3rd.Config.Token

现在代码里的check处理。会强行验证为32长度。其实现在消息的验证Token可以不是32位。这里建议调整下。

关于获取体验版二维码接口的问题

我看你源码是内部直接保存在指定的某个位置然后返回一个路径,但是这样不够灵活,我建议直接返回二维码图片的byte数组,至于要怎么处理这个数据就交给上层业务代码了

FastRegisterPersonalWeapp这个接口好像返回有点问题

官方给的返回实例里面是这样的
{
"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))好像是返回了错误,但是

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.