Sfoglia il codice sorgente

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 anni fa
parent
commit
0897a1f52b
2 ha cambiato i file con 16 aggiunte e 5 eliminazioni
  1. 3 3
      conf/app.conf
  2. 13 2
      controllers/sg/his_api_controller.go

+ 3 - 3
conf/app.conf Vedi File

@@ -1,6 +1,6 @@
1 1
 appname = 血透
2 2
 httpport = 9532
3
-runmode = dev
3
+runmode = prod
4 4
 
5 5
 
6 6
 #
@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10188
48
+org_id = 10217
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -170,7 +170,7 @@ sso_domain = https://testsso.sgjyun.com
170 170
 call_domain = http://hf.szjkhd.com
171 171
 front_end_domain = "http://xt.test.sgjyun.com/#"
172 172
 
173
-org_id = 4
173
+org_id = 10217
174 174
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
175 175
 # gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_inf/poc/hsa/hgs/"
176 176
 #gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"

+ 13 - 2
controllers/sg/his_api_controller.go Vedi File

@@ -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)