We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序更新之后,wx.createCanvasContext是同步操作,不再有success/fail回调,因此wepy封装的wx.createCanvasContext的promise版会因为找不到success属性报错:
wx.createCanvasContext
PS:建议不要直接重写微信原有接口,另起名字,比如 wx.getUserInfo --> wx.getUserInfoAsync ,
wx.getUserInfo --> wx.getUserInfoAsync
The text was updated successfully, but these errors were encountered:
@HongbinFU 最初版本是重写API, 后来考虑到这里的问题,打算不重写wx.api然后以wepy.request来代替,但考虑到向下兼容就没有处理,后面找机会再更新 一下这个问题吧。
wepy.request
Sorry, something went wrong.
No branches or pull requests
微信小程序更新之后,
wx.createCanvasContext
是同步操作,不再有success/fail回调,因此wepy封装的wx.createCanvasContext
的promise版会因为找不到success属性报错:The text was updated successfully, but these errors were encountered: