This commit is contained in:
张成
2025-12-22 16:59:12 +08:00
parent e673a68173
commit 9ad2fd2992

View File

@@ -166,6 +166,22 @@ module.exports = {
console.error('获取价格套餐失败:', error); console.error('获取价格套餐失败:', error);
return ctx.fail('获取价格套餐失败: ' + error.message); 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);
}
} }
}; };