Browse Source

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

csx 3 years ago
parent
commit
394fabdbe9
1 changed files with 13 additions and 13 deletions
  1. 13 13
      controllers/sg/his_api_controller.go

+ 13 - 13
controllers/sg/his_api_controller.go View File

@@ -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://127.0.0.1:9533/" + "hbyb/1101?cert_no=" + "" +
228
+			api := "http://192.168.3.5:9533/" + "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)
@@ -1813,7 +1813,7 @@ func (c *HisApiController) GetRegisterInfo() {
1813 1813
 	if config.IsOpen == 1 {
1814 1814
 		var res ResultTwo
1815 1815
 		if miConfig.MdtrtareaAdmvs == "421300" {
1816
-			api := "http://127.0.0.1:9533/" + "hbyb/1101?cert_no=" + id_card +
1816
+			api := "http://192.168.3.5:9533/" + "hbyb/1101?cert_no=" + id_card +
1817 1817
 				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1818 1818
 				"&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)
1819 1819
 			resp, requestErr := http.Get(api)
@@ -1951,7 +1951,7 @@ func (c *HisApiController) GetRegisterInfo() {
1951 1951
 			//insutype = "390"
1952 1952
 			var resThree ResultThree
1953 1953
 			if miConfig.MdtrtareaAdmvs == "421300" {
1954
-				api := "http://127.0.0.1:9533/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1954
+				api := "http://192.168.3.5:9533/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1955 1955
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1956 1956
 					"&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
1957 1957
 				resp, requestErr := http.Get(api)
@@ -2179,7 +2179,7 @@ func (c *HisApiController) GetUploadInfo() {
2179 2179
 			data["dept"] = department.ID
2180 2180
 			data["config"] = config
2181 2181
 			bytesData, _ := json.Marshal(data)
2182
-			req, _ := http.NewRequest("POST", "http://127.0.0.1:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
2182
+			req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2203", bytes.NewReader(bytesData))
2183 2183
 			resp, _ := client.Do(req)
2184 2184
 			defer resp.Body.Close()
2185 2185
 			body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2329,7 +2329,7 @@ func (c *HisApiController) GetUploadInfo() {
2329 2329
 				if miConfig.MdtrtareaAdmvs == "421300" {
2330 2330
 
2331 2331
 					bytesData, _ := json.Marshal(data)
2332
-					req, _ := http.NewRequest("POST", "http://127.0.0.1:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
2332
+					req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2204", bytes.NewReader(bytesData))
2333 2333
 					resp, _ := client.Do(req)
2334 2334
 					defer resp.Body.Close()
2335 2335
 					body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2788,7 +2788,7 @@ func (c *HisApiController) GetUploadInfo() {
2788 2788
 			var result2 string
2789 2789
 
2790 2790
 			if miConfig.MdtrtareaAdmvs == "421300" {
2791
-				api := "http://127.0.0.1:9533/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2791
+				api := "http://192.168.3.5:9533/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2792 2792
 					his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
2793 2793
 					"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
2794 2794
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -3540,7 +3540,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3540 3540
 		data["config"] = config
3541 3541
 
3542 3542
 		bytesData, _ := json.Marshal(data)
3543
-		req, _ := http.NewRequest("POST", "http://127.0.0.1:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
3543
+		req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2203", bytes.NewReader(bytesData))
3544 3544
 		resp, _ := client.Do(req)
3545 3545
 		defer resp.Body.Close()
3546 3546
 		body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3679,7 +3679,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3679 3679
 			var res ResultFour
3680 3680
 			if miConfig.MdtrtareaAdmvs == "421300" {
3681 3681
 				bytesData, _ := json.Marshal(data)
3682
-				req, _ := http.NewRequest("POST", "http://127.0.0.1:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
3682
+				req, _ := http.NewRequest("POST", "http://192.168.3.5:9533/"+"hbyb/2204", bytes.NewReader(bytesData))
3683 3683
 				resp, _ := client.Do(req)
3684 3684
 				defer resp.Body.Close()
3685 3685
 				body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3888,7 +3888,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3888 3888
 
3889 3889
 					if miConfig.MdtrtareaAdmvs == "421300" {
3890 3890
 
3891
-						api := "http://127.0.0.1:9533/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3891
+						api := "http://192.168.3.5:9533/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3892 3892
 							his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
3893 3893
 							"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
3894 3894
 							"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -4298,7 +4298,7 @@ func (c *HisApiController) Refund() {
4298 4298
 		var result string
4299 4299
 
4300 4300
 		if miConfig.MdtrtareaAdmvs == "421300" {
4301
-			api3 := "http://127.0.0.1:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
4301
+			api3 := "http://192.168.3.5:9533/" + "hbyb/2208?psn_no=" + order.PsnNo +
4302 4302
 				"&mdtrt_id=" + order.Number + "&setl_id=" + order.SetlId + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4303 4303
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4304 4304
 			resp3, requestErr3 := http.Get(api3)
@@ -4350,7 +4350,7 @@ func (c *HisApiController) Refund() {
4350 4350
 
4351 4351
 			if miConfig.MdtrtareaAdmvs == "421300" {
4352 4352
 
4353
-				api3 := "http://127.0.0.1:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
4353
+				api3 := "http://192.168.3.5:9533/" + "hbyb/2205?psn_no=" + order.PsnNo +
4354 4354
 					"&mdtrt_id=" + order.Number + "&chrg_bchno=" + order.Number + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4355 4355
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4356 4356
 				resp3, requestErr3 := http.Get(api3)
@@ -4463,7 +4463,7 @@ func (c *HisApiController) RefundNumber() {
4463 4463
 		var res2 ResultSix
4464 4464
 		if miConfig.MdtrtareaAdmvs == "421300" {
4465 4465
 
4466
-			api3 := "http://127.0.0.1:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
4466
+			api3 := "http://192.168.3.5:9533/" + "hbyb/2202?psn_no=" + his.PsnNo +
4467 4467
 				"&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4468 4468
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4469 4469
 			resp3, requestErr3 := http.Get(api3)
@@ -5233,7 +5233,7 @@ func (c *HisApiController) GetSettleAccounts() {
5233 5233
 	if config.IsOpen == 1 {
5234 5234
 		if miConfig.MdtrtareaAdmvs == "421300" {
5235 5235
 
5236
-			api := "http://127.0.0.1:9533/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5236
+			api := "http://192.168.3.5:9533/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5237 5237
 				"&org_name=" + miConfig.OrgName + "&doctor=" + baseParams.Doctor + "&fixmedins_code=" + miConfig.Code +
5238 5238
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
5239 5239
 			resp, requestErr := http.Get(api)