|
|
@@ -17,6 +17,7 @@ const _mysqlLabor = ["172.16.12.5", "pbl"]; //edu數據庫信息
|
|
|
const _mysqluser = ["172.16.12.5", "cocorobouser"]; //edu數據庫信息
|
|
|
const _getmysqlLabor2 = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
const _getmysqlLabor = ["172.16.12.7", "pbl"]; //edu數據庫信息
|
|
|
+const api = 'http://36.213.31.21:8090'
|
|
|
|
|
|
// 定时任务:每天凌晨2点触发
|
|
|
schedule.scheduleJob("0 2 * * *", async () => {
|
|
|
@@ -52,7 +53,7 @@ schedule.scheduleJob("0 2 * * *", async () => {
|
|
|
return;
|
|
|
}
|
|
|
const response = await axios.post(
|
|
|
- "http://36.213.31.21:8090/api/data/integrate",
|
|
|
+ api + "/api/data/integrate",
|
|
|
dataAddParam,
|
|
|
{ headers: { "Content-Type": "application/json" } }
|
|
|
);
|
|
|
@@ -106,7 +107,7 @@ router.post("/sync/class", async (req, res) => {
|
|
|
|
|
|
// 向深教AI学习平台同步数据
|
|
|
const response = await axios.post(
|
|
|
- "http://36.213.31.21:8090/api/data/integrateClass",
|
|
|
+ api + "/api/data/integrateClass",
|
|
|
realClassParam,
|
|
|
{ headers: { "Content-Type": "application/json" } }
|
|
|
);
|