Skip to content
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

wx.createCanvasContext没有同步更新官方的api #14

Closed
CalvinHong opened this issue Jan 9, 2017 · 1 comment
Closed

wx.createCanvasContext没有同步更新官方的api #14

CalvinHong opened this issue Jan 9, 2017 · 1 comment

Comments

@CalvinHong
Copy link

CalvinHong commented Jan 9, 2017

微信小程序更新之后,wx.createCanvasContext是同步操作,不再有success/fail回调,因此wepy封装的wx.createCanvasContext的promise版会因为找不到success属性报错:
image

PS:建议不要直接重写微信原有接口,另起名字,比如 wx.getUserInfo --> wx.getUserInfoAsync

@Gcaufy
Copy link
Collaborator

Gcaufy commented Jan 10, 2017

@HongbinFU 最初版本是重写API, 后来考虑到这里的问题,打算不重写wx.api然后以wepy.request来代替,但考虑到向下兼容就没有处理,后面找机会再更新 一下这个问题吧。

@Gcaufy Gcaufy closed this as completed Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants