加个延迟防止武器记录获取失败 (#246)

* 适配一下`WeChat-plugin`

`ComWeChatBotClient`的`user_id`和`group_id`都是字符串,在此的情况下,不能正确识别id,导致黑白名单和主人无法生效问题

* 延迟下防止武器记录获取失败
This commit is contained in:
Zyy955 2023-09-08 02:31:29 +08:00 committed by GitHub
parent 97431b0d10
commit d3237aba12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -286,6 +286,9 @@ export default class GachaLog extends base {
region: this.getServer() region: this.getServer()
}) })
/** 延迟下防止武器记录获取失败 */
await common.sleep(1000)
if (res.retcode != 0) { if (res.retcode != 0) {
return { hasErr: true, list: [] } return { hasErr: true, list: [] }
} }