|
@@ -332,7 +332,13 @@ func (c *HisApiController) Check3101() {
|
332
|
332
|
client := &http.Client{}
|
333
|
333
|
bytesData, _ := json.Marshal(data)
|
334
|
334
|
var req *http.Request
|
335
|
|
- req, _ = http.NewRequest("POST", "http://192.168.3.111:9532/"+"jsyb/3101", bytes.NewReader(bytesData))
|
|
335
|
+
|
|
336
|
+ if miConfig.MdtrtareaAdmvs == "320921" {
|
|
337
|
+ req, _ = http.NewRequest("POST", "http://192.168.3.111:9532/"+"jsyb/3101", bytes.NewReader(bytesData))
|
|
338
|
+ } else {
|
|
339
|
+ req, _ = http.NewRequest("POST", "http://192.168.5.251:9532/"+"jsyb/3101", bytes.NewReader(bytesData))
|
|
340
|
+ }
|
|
341
|
+
|
336
|
342
|
resp, _ := client.Do(req)
|
337
|
343
|
defer resp.Body.Close()
|
338
|
344
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
@@ -694,7 +700,12 @@ func (c *HisApiController) Check3102() {
|
694
|
700
|
client := &http.Client{}
|
695
|
701
|
bytesData, _ := json.Marshal(data)
|
696
|
702
|
var req *http.Request
|
697
|
|
- req, _ = http.NewRequest("POST", "http://192.168.3.111:9532/"+"jsyb/3102", bytes.NewReader(bytesData))
|
|
703
|
+ if miConfig.MdtrtareaAdmvs == "320921" {
|
|
704
|
+ req, _ = http.NewRequest("POST", "http://192.168.3.111:9532/"+"jsyb/3102", bytes.NewReader(bytesData))
|
|
705
|
+ } else {
|
|
706
|
+ req, _ = http.NewRequest("POST", "http://192.168.5.251:9532/"+"jsyb/3102", bytes.NewReader(bytesData))
|
|
707
|
+ }
|
|
708
|
+
|
698
|
709
|
resp, _ := client.Do(req)
|
699
|
710
|
defer resp.Body.Close()
|
700
|
711
|
body, ioErr := ioutil.ReadAll(resp.Body)
|