1
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user