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

WeChat Mini Program can't support 'promise' grammar #363

Open
wwddd66 opened this issue Feb 21, 2021 · 0 comments
Open

WeChat Mini Program can't support 'promise' grammar #363

wwddd66 opened this issue Feb 21, 2021 · 0 comments

Comments

@wwddd66
Copy link

wwddd66 commented Feb 21, 2021

I want to use this code in my WeChat Mini Program, but it can't support 'promise' grammar. And I can't understand the Instructions of readme, so how to return the 'data' after calling the cloud function?
我想在我的微信小程序中使用此代码,但它不支持“promise”语法。 而且我不明白readme的说明,那么调用云函数后如何返回“data”?
const client = new OcrClient(clientConfig); const params = { "ImageUrl": "https://xxx.jpg" }; client.BusinessCardOCR(params).then( (data) => { console.log(data); }, (err) => { console.error("error", err); }

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

1 participant