加个延迟防止武器记录获取失败 (#246)
* 适配一下`WeChat-plugin` `ComWeChatBotClient`的`user_id`和`group_id`都是字符串,在此的情况下,不能正确识别id,导致黑白名单和主人无法生效问题 * 延迟下防止武器记录获取失败
This commit is contained in:
		
							parent
							
								
									97431b0d10
								
							
						
					
					
						commit
						d3237aba12
					
				| 
						 | 
					@ -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: [] }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue