From 9ad2fd2992f81c50cad125d6e6cdc1d8fb3138f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 22 Dec 2025 16:59:12 +0800 Subject: [PATCH] 1 --- api/controller_front/config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/controller_front/config.js b/api/controller_front/config.js index 22baef5..2f9a1eb 100644 --- a/api/controller_front/config.js +++ b/api/controller_front/config.js @@ -166,6 +166,22 @@ module.exports = { console.error('获取价格套餐失败:', error); return ctx.fail('获取价格套餐失败: ' + error.message); } + }, + + 'GET /config/remote-code/version': async (ctx) => { + try { + + const remoteCode = + { + version: "1.0.9", + download_url: "https://work.light120.com/app/dist-modules/modules.zip", + info_url: "https://work.light120.com/app/dist-modules/modules-info.json", + } + return ctx.success(remoteCode); + } catch (error) { + console.error('获取远程代码失败:', error); + return ctx.fail('获取远程代码失败: ' + error.message); + } } };