Skip to content

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

@wwddd66

Description

@wwddd66

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); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions