Explorar el Código

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

csx hace 3 años
padre
commit
37d5ca7454
Se han modificado 1 ficheros con 13 adiciones y 13 borrados
  1. 13 13
      controllers/sg/his_api_controller.go

+ 13 - 13
controllers/sg/his_api_controller.go Ver fichero

@@ -225,7 +225,7 @@ func (c *HisApiController) ReadCard() {
225 225
 	case 1:
226 226
 		if miConfig.MdtrtareaAdmvs == "421300" {
227 227
 			var res ResultTwo
228
-			api := "http://192.168.3.2:9532/" + "hbyb/1101?cert_no=" + "" +
228
+			api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + "" +
229 229
 				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
230 230
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
231 231
 			resp, requestErr := http.Get(api)
@@ -1815,7 +1815,7 @@ func (c *HisApiController) GetRegisterInfo() {
1815 1815
 	if config.IsOpen == 1 {
1816 1816
 		var res ResultTwo
1817 1817
 		if miConfig.MdtrtareaAdmvs == "421300" {
1818
-			api := "http://192.168.3.2:9532/" + "hbyb/1101?cert_no=" + id_card +
1818
+			api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + id_card +
1819 1819
 				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1820 1820
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&card_sn=" + "" + "&certificates=" + strconv.FormatInt(certificates, 10)
1821 1821
 			resp, requestErr := http.Get(api)
@@ -1955,7 +1955,7 @@ func (c *HisApiController) GetRegisterInfo() {
1955 1955
 			//insutype = "390"
1956 1956
 			var resThree ResultThree
1957 1957
 			if miConfig.MdtrtareaAdmvs == "421300" {
1958
-				api := "http://192.168.3.2:9532/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1958
+				api := "http://192.168.3.5:9532/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1959 1959
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1960 1960
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey + "&id_card_type=" + strconv.FormatInt(id_card_type, 10) + "&dept_code=" + department.Number + "&dept=" + department.Name + "&doctor_id=" + doctor_id
1961 1961
 				resp, requestErr := http.Get(api)
@@ -2185,7 +2185,7 @@ func (c *HisApiController) GetUploadInfo() {
2185 2185
 			data["dept"] = department.ID
2186 2186
 			data["config"] = config
2187 2187
 			bytesData, _ := json.Marshal(data)
2188
-			req, _ := http.NewRequest("POST", "http://192.168.3.2:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
2188
+			req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
2189 2189
 			resp, _ := client.Do(req)
2190 2190
 			defer resp.Body.Close()
2191 2191
 			body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2337,7 +2337,7 @@ func (c *HisApiController) GetUploadInfo() {
2337 2337
 				if miConfig.MdtrtareaAdmvs == "421300" {
2338 2338
 
2339 2339
 					bytesData, _ := json.Marshal(data)
2340
-					req, _ := http.NewRequest("POST", "http://192.168.3.2:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
2340
+					req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
2341 2341
 					resp, _ := client.Do(req)
2342 2342
 					defer resp.Body.Close()
2343 2343
 					body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2797,7 +2797,7 @@ func (c *HisApiController) GetUploadInfo() {
2797 2797
 			var result2 string
2798 2798
 
2799 2799
 			if miConfig.MdtrtareaAdmvs == "421300" {
2800
-				api := "http://192.168.3.2:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2800
+				api := "http://192.168.3.5:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2801 2801
 					his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
2802 2802
 					"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
2803 2803
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -3550,7 +3550,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3550 3550
 		data["config"] = config
3551 3551
 
3552 3552
 		bytesData, _ := json.Marshal(data)
3553
-		req, _ := http.NewRequest("POST", "http://192.168.3.2:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
3553
+		req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
3554 3554
 		resp, _ := client.Do(req)
3555 3555
 		defer resp.Body.Close()
3556 3556
 		body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3690,7 +3690,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3690 3690
 			var res ResultFour
3691 3691
 			if miConfig.MdtrtareaAdmvs == "421300" {
3692 3692
 				bytesData, _ := json.Marshal(data)
3693
-				req, _ := http.NewRequest("POST", "http://192.168.3.2:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
3693
+				req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
3694 3694
 				resp, _ := client.Do(req)
3695 3695
 				defer resp.Body.Close()
3696 3696
 				body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3900,7 +3900,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3900 3900
 
3901 3901
 					if miConfig.MdtrtareaAdmvs == "421300" {
3902 3902
 
3903
-						api := "http://192.168.3.2:9532/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3903
+						api := "http://192.168.3.5:9532/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3904 3904
 							his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
3905 3905
 							"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
3906 3906
 							"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -4311,7 +4311,7 @@ func (c *HisApiController) Refund() {
4311 4311
 		var result string
4312 4312
 
4313 4313
 		if miConfig.MdtrtareaAdmvs == "421300" {
4314
-			api3 := "http://192.168.3.2:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
4314
+			api3 := "http://192.168.3.5:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
4315 4315
 				"&mdtrt_id=" + order.Number + "&setl_id=" + order.SetlId + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4316 4316
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4317 4317
 			resp3, requestErr3 := http.Get(api3)
@@ -4364,7 +4364,7 @@ func (c *HisApiController) Refund() {
4364 4364
 
4365 4365
 			if miConfig.MdtrtareaAdmvs == "421300" {
4366 4366
 
4367
-				api3 := "http://192.168.3.2:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
4367
+				api3 := "http://192.168.3.5:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
4368 4368
 					"&mdtrt_id=" + order.Number + "&chrg_bchno=" + order.Number + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4369 4369
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4370 4370
 				resp3, requestErr3 := http.Get(api3)
@@ -4478,7 +4478,7 @@ func (c *HisApiController) RefundNumber() {
4478 4478
 		var res2 ResultSix
4479 4479
 		if miConfig.MdtrtareaAdmvs == "421300" {
4480 4480
 
4481
-			api3 := "http://192.168.3.2:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
4481
+			api3 := "http://192.168.3.5:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
4482 4482
 				"&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4483 4483
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4484 4484
 			resp3, requestErr3 := http.Get(api3)
@@ -5249,7 +5249,7 @@ func (c *HisApiController) GetSettleAccounts() {
5249 5249
 	if config.IsOpen == 1 {
5250 5250
 		if miConfig.MdtrtareaAdmvs == "421300" {
5251 5251
 
5252
-			api := "http://192.168.3.2:9532/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5252
+			api := "http://192.168.3.5:9532/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5253 5253
 				"&org_name=" + miConfig.OrgName + "&doctor=" + baseParams.Doctor + "&fixmedins_code=" + miConfig.Code +
5254 5254
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
5255 5255
 			resp, requestErr := http.Get(api)