diff --git a/data/panacea/version.json b/data/panacea/version.json
index 3bc200e..33ad627 100644
--- a/data/panacea/version.json
+++ b/data/panacea/version.json
@@ -1,8 +1,8 @@
{
"version": "1.6.5",
"description": {
- "en": "- Add backtest module\n- Opti trade\n- Bug fix",
- "cn": "- 添加回测模块\n- 交易优化\n- Bug修复"
+ "en": "
- Add backtest module
- Opti trade
- Bug fix
",
+ "cn": "- 添加回测模块
- 交易优化
- Bug修复
"
},
"downloadLink": "https://www.ciiat.com/download",
"enforce":true
diff --git a/extensions/output/panacea/api/panacea.js b/extensions/output/panacea/api/panacea.js
index c111453..7241080 100644
--- a/extensions/output/panacea/api/panacea.js
+++ b/extensions/output/panacea/api/panacea.js
@@ -1,5 +1,6 @@
const checkVersion = (message, cb) => {
let versionObj = require("../../../../data/panacea/version.json");
+ console.log("checkVersion", message);
function versionCompare(oldVer, newVer) {
let v1s = oldVer.split(".");
let v2s = newVer.split(".");
@@ -8,11 +9,13 @@ const checkVersion = (message, cb) => {
return newV > oldV;
}
let hasNewVersion = versionCompare(message.data.version, versionObj.version);
+ console.log("hasNewVersion", hasNewVersion);
if (!hasNewVersion) return;
let data = {
action: message.action,
data: versionObj,
};
+ console.log("checkVersion ok", data);
if (cb) cb(data);
};
module.exports = {