修复 仅绑定星铁时 `*删除ck` 报错:删除失败,当前的UID无CK信息

Signed-off-by: batvbs <batvbs@qq.com>
This commit is contained in:
batvbs 2023-11-26 00:52:41 +00:00 committed by Gitee
parent 9ed7f03559
commit 291cca42a2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 4 deletions

View File

@ -151,11 +151,13 @@ export default class User extends base {
/** 删除绑定ck */
async delCk () {
let game = 'gs'
if ( /星铁/.test(this.e.msg) ) {
game = 'sr'
let game;
if (this.e.game) {
game = this.e.game;
} else {
game = 'gs';
}
//判断是原神还是星铁。e.game总报错暂时只能这么实现大佬轻喷
//判断是原神还是星铁
let user = await this.user()
// 获取当前uid
let uidData = user.getUidData('' , game=game, this.e)