mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2025-02-02 00:15:41 +00:00
修正V3下msg不存在时的报错
This commit is contained in:
parent
cf4451c50a
commit
f93804166a
@ -18,11 +18,14 @@ export class miao extends plugin {
|
||||
}
|
||||
|
||||
accept () {
|
||||
this.e.original_msg = this.e.msg
|
||||
this.e.original_msg = this.e.original_msg || this.e.msg
|
||||
}
|
||||
|
||||
async dispatch (e) {
|
||||
let msg = e.original_msg
|
||||
let msg = e.original_msg || ''
|
||||
if (!msg) {
|
||||
return
|
||||
}
|
||||
e.checkAuth = async function (cfg) {
|
||||
return await checkAuth(e, cfg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user