mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: 添加练度的计算公式
This commit is contained in:
parent
2c745c256e
commit
8a420e8fe1
3 changed files with 51 additions and 2 deletions
|
|
@ -29,7 +29,9 @@ export class ZZZPlugin extends plugin {
|
|||
const uid = this.User?.getUid('zzz');
|
||||
// 如果 UID 不存在,说明没有绑定 cookie
|
||||
if (!uid) {
|
||||
await this.reply('uid为空,米游社查询请先绑定cookie,其他查询请携带uid');
|
||||
await this.reply(
|
||||
'uid为空,需要CK的功能请先绑定CK或者#扫码登录,需要SK的功能请#扫码登录,若不清楚需要CK或SK,请查看%帮助'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
// 返回 UID
|
||||
|
|
@ -47,7 +49,7 @@ export class ZZZPlugin extends plugin {
|
|||
const ck = await getCk(this.e);
|
||||
// 如果 cookie 不存在或者 cookie 为空,说明没有绑定 cookie
|
||||
if (!ck || Object.keys(ck).filter(k => ck[k].ck).length === 0) {
|
||||
await this.reply('尚未绑定cookie,请先绑定cookie');
|
||||
await this.reply('尚未绑定cookie,请先绑定cookie,或者#扫码登录');
|
||||
return { api: null, uid: null, deviceFp: null };
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue