|
|
@@ -2,6 +2,7 @@ import axios from "axios";
|
|
|
import md5 from "js-md5";
|
|
|
import xml2js from "xml2js";
|
|
|
import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
+import env from "@/utils/setting";
|
|
|
|
|
|
// const baseURL = process.env.VITE_MATERNALChild_URL
|
|
|
const baseURL = import.meta.env.VITE_MATERNALChild_URL;
|
|
|
@@ -128,7 +129,7 @@ async function fuYouRequest(obj, type) {
|
|
|
// return false
|
|
|
// 实际调用代码(由于跨域限制,可能需要通过代理调用)
|
|
|
const response = await axios.post(
|
|
|
- "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign=" +
|
|
|
+ env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign=" +
|
|
|
sign,
|
|
|
|
|
|
`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
@@ -202,7 +203,7 @@ async function maternalChildLogin() {
|
|
|
console.log("signObj----------", signObj);
|
|
|
let sign = encodeUnicode(JSON.stringify(signObj));
|
|
|
const response = await axios.post(
|
|
|
- "http://localhost:3000/fuYou/mchis-controller/services/Mchis?wsdl&sign=" +
|
|
|
+ env.VITE_BASE_URL + "/mchis-controller/services/Mchis?wsdl&sign=" +
|
|
|
sign,
|
|
|
`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
|