node-webot / co-wechat-api

Wechat API. Support Async Functions
Other
723 stars 170 forks source link

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

Closed liamjung closed 6 years ago

liamjung commented 6 years ago

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

JacksonTian commented 6 years ago

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