change ip server log
This commit is contained in:
parent
c52ca31bf5
commit
b8d49f3d74
|
|
@ -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("<a ") + 9, u.search("</a>"))
|
||||
.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("<a ") + 9, u.search("</a>")).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) {
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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("<a ") + 9, u.search("</a>")).split(">")[1].includes("AUTO")?"http://192.168.5.7:8080/AUTOlog/":"http://192.168.5.7:8080/") +
|
||||
// (u.slice(u.search("<a ") + 9, u.search("</a>")).split(">")[1].includes("AUTO")?"http://172.16.5.7:8080/AUTOlog/":"http://172.16.5.7:8080/") +
|
||||
// u.slice(u.search("<a ") + 9, u.search("</a>")).split(">")[1] +
|
||||
// " "
|
||||
// );
|
||||
|
|
|
|||
Loading…
Reference in New Issue