修改111连通101的请求接口
This commit is contained in:
parent
17c44712d0
commit
690e7ed1d6
@ -1,14 +1,15 @@
|
||||
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
|
||||
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:{
|
||||
"礼泉县裴寨卫生院":{
|
||||
@ -84,11 +85,11 @@ export const processImageApi = {
|
||||
enableWatermark:1,
|
||||
}
|
||||
},
|
||||
processImg: async (params: string) => {
|
||||
processImg: async (params: string,url=this.apiUrl222) => {
|
||||
try {
|
||||
const response = await axios({
|
||||
method: 'post',
|
||||
url: apiUrl,
|
||||
url: url,
|
||||
data: params,
|
||||
timeout: 30000,
|
||||
withCredentials: true
|
||||
|
||||
@ -750,7 +750,7 @@ async function process() {
|
||||
data.imagePath = processImageApi.urlToAddress(data.imagePath)
|
||||
// let str = JSON.stringify(data)
|
||||
// let str64 = encodeBase64(str)
|
||||
const processResponse = await processImageApi.processImg(data)
|
||||
const processResponse = await processImageApi.processImg(data,processImageApi.apiUrl111)
|
||||
console.log("processResponse",processResponse)
|
||||
|
||||
// 1. 解析外层 JSON 的 data 字符串
|
||||
|
||||
Loading…
Reference in New Issue
Block a user