mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: uid
This commit is contained in:
parent
4828a31163
commit
8f5e986038
1 changed files with 3 additions and 1 deletions
|
|
@ -9,7 +9,9 @@ export class ZZZPlugin extends plugin {
|
|||
if (this.e.at) {
|
||||
user = this.e.at;
|
||||
}
|
||||
this.User = new NoteUser(user);
|
||||
this.User = await NoteUser.create(user);
|
||||
logger.mark(this.User);
|
||||
logger.mark(this.User.getUid('zzz'));
|
||||
let uid = this.e.msg.match(/\d+/)?.[0];
|
||||
uid = uid || this.User?.getUid('zzz');
|
||||
if (!uid) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue