修改111连通101的请求接口

This commit is contained in:
yy2205 2025-06-05 09:38:57 +08:00
parent 17c44712d0
commit 690e7ed1d6
2 changed files with 11 additions and 10 deletions

View File

@ -1,14 +1,15 @@
import axios from 'axios' import axios from 'axios'
// const apiUrl = 'https://zzxmc.gw12320.com/processImage'
const apiUrl = 'https://pacs.gw12320.com/adminecg/admin-api/tblist/ecganalysisparas/rpc-processImage'
const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/'
const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/'
// const apiUrl = 'https://localhost:48080/admin-api/tblist/ecganalysisparas/rpc-processImage'
// const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/'
// const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/'
// 超声组件 API // 超声组件 API
export const processImageApi = { export const processImageApi = {
// const apiUrl = 'https://zzxmc.gw12320.com/processImage'
apiUrl222 : 'https://pacs.gw12320.com/adminecg/admin-api/tblist/ecganalysisparas/rpc-processImage', //222服务器
apiUrl111 : 'http://111.57.76.10:8072/admin-api/tblist/ecganalysisparas/rpc-processImage', //111服务器
imageAddress : 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/',
originImageAddress : 'https://zzxmc.gw12320.com/ecgimage/',
// const apiUrl = 'https://localhost:48080/admin-api/tblist/ecganalysisparas/rpc-processImage'
// const imageAddress = 'F://陕西省咸阳市礼泉县心电图FTP/ecgimage/'
// const originImageAddress = 'https://zzxmc.gw12320.com/ecgimage/'
// 查询模版表数据 // 查询模版表数据
paramsList:{ paramsList:{
"礼泉县裴寨卫生院":{ "礼泉县裴寨卫生院":{
@ -84,11 +85,11 @@ export const processImageApi = {
enableWatermark:1, enableWatermark:1,
} }
}, },
processImg: async (params: string) => { processImg: async (params: string,url=this.apiUrl222) => {
try { try {
const response = await axios({ const response = await axios({
method: 'post', method: 'post',
url: apiUrl, url: url,
data: params, data: params,
timeout: 30000, timeout: 30000,
withCredentials: true withCredentials: true

View File

@ -750,7 +750,7 @@ async function process() {
data.imagePath = processImageApi.urlToAddress(data.imagePath) data.imagePath = processImageApi.urlToAddress(data.imagePath)
// let str = JSON.stringify(data) // let str = JSON.stringify(data)
// let str64 = encodeBase64(str) // let str64 = encodeBase64(str)
const processResponse = await processImageApi.processImg(data) const processResponse = await processImageApi.processImg(data,processImageApi.apiUrl111)
console.log("processResponse",processResponse) console.log("processResponse",processResponse)
// 1. JSON data // 1. JSON data