diff --git a/app/Controllers/Http/ErpsController.ts b/app/Controllers/Http/ErpsController.ts
index 6075293..aac4b28 100644
--- a/app/Controllers/Http/ErpsController.ts
+++ b/app/Controllers/Http/ErpsController.ts
@@ -17,9 +17,9 @@ export default class ErpsController {
try {
// console.log("check!")
const listLog: string[] = [];
- const response = await axios.get("http://192.168.5.7:8080/");
+ const response = await axios.get("http://172.16.5.7:8080/");
const responseAUTO = await axios.get(
- "http://192.168.5.7:8080/AUTOlog/"
+ "http://172.16.5.7:8080/AUTOlog/"
);
let data1 = response.data
@@ -49,8 +49,8 @@ export default class ErpsController {
.slice(u.search(""))
.split(">")[1]
.includes("AUTO")
- ? "http://192.168.5.7:8080/AUTOlog/"
- : "http://192.168.5.7:8080/") +
+ ? "http://172.16.5.7:8080/AUTOlog/"
+ : "http://172.16.5.7:8080/") +
u.slice(u.search("")).split(">")[1] +
" "
);
@@ -309,7 +309,7 @@ export default class ErpsController {
try {
let fName =
fileName.search("AUTO") !== -1 ? "AUTOlog/" + fileName : fileName;
- const res = await axios.get("http://192.168.5.7:8080/" + fName);
+ const res = await axios.get("http://172.16.5.7:8080/" + fName);
const arrayLine = res?.data?.split("\n");
if (range >= line) {
diff --git a/app/Controllers/Http/LogsController.ts b/app/Controllers/Http/LogsController.ts
index f0a9eea..8e0a82d 100644
--- a/app/Controllers/Http/LogsController.ts
+++ b/app/Controllers/Http/LogsController.ts
@@ -58,8 +58,8 @@ export default class LogsController {
const content = await axios.get(
request.params().name.search("AUTO") !== -1
- ? "http://192.168.5.7:8080/AUTOlog/" + request.params().name
- : "http://192.168.5.7:8080/" + request.params().name
+ ? "http://172.16.5.7:8080/AUTOlog/" + request.params().name
+ : "http://172.16.5.7:8080/" + request.params().name
);
let allValue = await KeyValue.all();
let listKeyValues = allValue.filter(
diff --git a/screenshot.js b/screenshot.js
index 817b50c..ac6413c 100644
--- a/screenshot.js
+++ b/screenshot.js
@@ -327,9 +327,9 @@ axios.post('https://disti.danielvu.com/api/sendBuyerOrderToERP', dataToSend, { h
// let listLog = []
// let from = 20230926
// let to = 20230926
-// const response = await axios.get("http://192.168.5.7:8080/");
+// const response = await axios.get("http://172.16.5.7:8080/");
// const responseAUTO = await axios.get(
-// "http://192.168.5.7:8080/AUTOlog/"
+// "http://172.16.5.7:8080/AUTOlog/"
// );
// let data1 = response.data.split("\n")
@@ -353,7 +353,7 @@ axios.post('https://disti.danielvu.com/api/sendBuyerOrderToERP', dataToSend, { h
// parseInt(temp?.split("-")[0]) <= to
// ) {
// listLog.push(
-// (u.slice(u.search("")).split(">")[1].includes("AUTO")?"http://192.168.5.7:8080/AUTOlog/":"http://192.168.5.7:8080/") +
+// (u.slice(u.search("")).split(">")[1].includes("AUTO")?"http://172.16.5.7:8080/AUTOlog/":"http://172.16.5.7:8080/") +
// u.slice(u.search("")).split(">")[1] +
// " "
// );