mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 11:50:23 +08:00
feat: 发布 1.1.11,正式/测试分栏切换(不含 Skill)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d30f3a76e9
commit
f9386d77d6
6 files changed
+658
-102
No files matched your search
+2
-4
@@ -744,6 +744,7 @@ function installWebServer(ctx, cfg) {
|
||||
dsh_home: state.dsh_home,
|
||||
plugin_version: updater.localVersion(),
|
||||
update: updater.lastUpdateResult(),
|
||||
...updater.channelPublic(),
|
||||
});
|
||||
} catch (e) {
|
||||
sendJson(response, 500, { ok: false, error: String(e) });
|
||||
@@ -908,10 +909,7 @@ function installWebServer(ctx, cfg) {
|
||||
if (request.method === "POST") {
|
||||
try {
|
||||
const body = await readJsonBody(request);
|
||||
const result = body && body.auto
|
||||
? await updater.autoUpdateIfNeeded()
|
||||
: await updater.applyUpdate();
|
||||
sendJson(response, 200, result);
|
||||
sendJson(response, 200, await updater.handleUpdateOp(body || {}));
|
||||
} catch (e) {
|
||||
sendJson(response, 500, { ok: false, error: String(e) });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user