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

对微信 内置 api promise封装的问题 #199

Closed
Uheinanba opened this issue Jun 15, 2017 · 3 comments
Closed

对微信 内置 api promise封装的问题 #199

Uheinanba opened this issue Jun 15, 2017 · 3 comments

Comments

@Uheinanba
Copy link

image

现在有些更新的API 比如:reportAnalytics 是没有 success的回调,在程序中会报错。
看看有没有办法做下兼容呢。

Gcaufy added a commit that referenced this issue Jun 30, 2017
@Gcaufy
Copy link
Collaborator

Gcaufy commented Jun 30, 2017

发版本后将支持配置在wepy.config.js中去配置

module.exports = {
    build: {},
    compilers: {},
    appConfig: {
        promisifyAPI: {
            'reportAnalytics': true
        }
    }
}

@yoyoyohamapi
Copy link

@Gcaufy 您好,这个配置现在支持了吗

@Gcaufy
Copy link
Collaborator

Gcaufy commented Jul 14, 2017

@yoyoyohamapi 还没有发布新版本呢,你可以参考这个commit ee80ec5 自行修复一下代码

@Gcaufy Gcaufy closed this as completed Aug 14, 2017
dlhandsome pushed a commit to dlhandsome/wepy that referenced this issue Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants