细节优化

This commit is contained in:
🌌 2023-07-26 10:35:11 +08:00
parent d4a2c945ee
commit 96b3725b7e
3 changed files with 8 additions and 7 deletions

View File

@ -27,7 +27,7 @@
"log4js": "^6.9.1", "log4js": "^6.9.1",
"md5": "^2.3.0", "md5": "^2.3.0",
"moment": "^2.29.4", "moment": "^2.29.4",
"node-fetch": "^3.3.1", "node-fetch": "^3.3.2",
"node-schedule": "^2.1.1", "node-schedule": "^2.1.1",
"node-xlsx": "^0.23.0", "node-xlsx": "^0.23.0",
"oicq": "link:lib/modules/oicq", "oicq": "link:lib/modules/oicq",

View File

@ -108,6 +108,10 @@ Bot.adapter.push(new class ComWeChatAdapter {
case "reply": case "reply":
continue continue
break break
case "wx.emoji":
break
case "wx.link":
break
default: default:
i = { type: "text", data: { text: JSON.stringify(i) }} i = { type: "text", data: { text: JSON.stringify(i) }}
} }

View File

@ -105,12 +105,9 @@ export class update extends plugin {
cm = `git reset --hard && git pull --rebase --allow-unrelated-histories` cm = `git reset --hard && git pull --rebase --allow-unrelated-histories`
} }
if (plugin) { if (plugin)
if (type == '强制更新') cm = `cd "plugins/${plugin}" && ${cm}`
cm = `cd "plugins/${plugin}" && git reset --hard && git pull --rebase --allow-unrelated-histories`
else
cm = `cd "plugins/${plugin}" && git pull --no-rebase`
}
this.oldCommitId = await this.getcommitId(plugin) this.oldCommitId = await this.getcommitId(plugin)