!23 update apps/stat/AbyssTeam.js.

Merge pull request !23 from 依风灬听雨/N/A
This commit is contained in:
Kokomi 2023-05-22 02:35:57 +00:00 committed by Gitee
commit e315233537
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,9 +4,10 @@ import { Common } from '#miao'
import { Character, MysApi, Player } from '#miao.models'
export async function AbyssTeam (e) {
let mys = await MysApi.init(e, 'cookie')
if (!mys || !mys.uid || !mys.isSelfCookie) {
return true
let mys = await MysApi.init(e, 'all')
if (!mys || !mys.uid) {
e.reply(`请绑定ck后再使用${e.original_msg || e.msg}`)
return false
}
let player = Player.create(e)
await player.refreshMysDetail(2)