node-webot / co-wechat-api

Wechat API. Support Async Functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ensureAccessToken方法中的this.getAccessToken()调用缺少await关键字

liamjung opened this issue · comments

commented

return this.getAccessToken();
需改为
return await this.getAccessToken();

小哥哥,当 return 的结果是一个 Promise 对象时,await 关键字可以省略哦。