feat: 添加练度的计算公式

This commit is contained in:
bietiaop 2024-07-31 17:11:30 +08:00
parent 2c745c256e
commit 8a420e8fe1
3 changed files with 51 additions and 2 deletions

View file

@ -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 {