mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
!23 update apps/stat/AbyssTeam.js.
Merge pull request !23 from 依风灬听雨/N/A
This commit is contained in:
commit
e315233537
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user