Parcourir la source

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

csx il y a 3 ans
Parent
révision
a8f161d8ce
2 fichiers modifiés avec 14 ajouts et 14 suppressions
  1. 1 1
      conf/app.conf
  2. 13 13
      controllers/sg/his_api_controller.go

+ 1 - 1
conf/app.conf Voir le fichier

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10215
48
+org_id = 10088
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com

+ 13 - 13
controllers/sg/his_api_controller.go Voir le fichier

@@ -227,7 +227,7 @@ func (c *HisApiController) ReadCard() {
227 227
 	case 1:
228 228
 		if miConfig.MdtrtareaAdmvs == "421300" {
229 229
 			var res ResultTwo
230
-			api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + "" +
230
+			api := "http://192.168.124.4:9532/" + "hbyb/1101?cert_no=" + "" +
231 231
 				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
232 232
 				"&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)
233 233
 			resp, requestErr := http.Get(api)
@@ -1818,7 +1818,7 @@ func (c *HisApiController) GetRegisterInfo() {
1818 1818
 	if config.IsOpen == 1 {
1819 1819
 		var res ResultTwo
1820 1820
 		if miConfig.MdtrtareaAdmvs == "421300" {
1821
-			api := "http://192.168.3.5:9532/" + "hbyb/1101?cert_no=" + id_card +
1821
+			api := "http://192.168.124.4:9532/" + "hbyb/1101?cert_no=" + id_card +
1822 1822
 				"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1823 1823
 				"&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)
1824 1824
 			resp, requestErr := http.Get(api)
@@ -1958,7 +1958,7 @@ func (c *HisApiController) GetRegisterInfo() {
1958 1958
 			//insutype = "390"
1959 1959
 			var resThree ResultThree
1960 1960
 			if miConfig.MdtrtareaAdmvs == "421300" {
1961
-				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 +
1961
+				api := "http://192.168.124.4:9532/" + "hbyb/2201?psn_no=" + res.Output.Baseinfo.PsnNo + "&insutype=" + insutype + "&cert_no=" + res.Output.Baseinfo.Certno + "&ipt_otp_no=" + ipt_otp_no +
1962 1962
 					"&org_name=" + miConfig.OrgName + "&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
1963 1963
 					"&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
1964 1964
 				resp, requestErr := http.Get(api)
@@ -2189,7 +2189,7 @@ func (c *HisApiController) GetUploadInfo() {
2189 2189
 			data["dept"] = department.ID
2190 2190
 			data["config"] = config
2191 2191
 			bytesData, _ := json.Marshal(data)
2192
-			req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
2192
+			req, _ := http.NewRequest("POST", "http://192.168.124.4:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
2193 2193
 			resp, _ := client.Do(req)
2194 2194
 			defer resp.Body.Close()
2195 2195
 			body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2341,7 +2341,7 @@ func (c *HisApiController) GetUploadInfo() {
2341 2341
 				if miConfig.MdtrtareaAdmvs == "421300" {
2342 2342
 
2343 2343
 					bytesData, _ := json.Marshal(data)
2344
-					req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
2344
+					req, _ := http.NewRequest("POST", "http://192.168.124.4:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
2345 2345
 					resp, _ := client.Do(req)
2346 2346
 					defer resp.Body.Close()
2347 2347
 					body, ioErr := ioutil.ReadAll(resp.Body)
@@ -2801,7 +2801,7 @@ func (c *HisApiController) GetUploadInfo() {
2801 2801
 			var result2 string
2802 2802
 
2803 2803
 			if miConfig.MdtrtareaAdmvs == "421300" {
2804
-				api := "http://192.168.3.5:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2804
+				api := "http://192.168.124.4:9532/" + "hbyb/2207?psn_no=" + his.PsnNo + "&mdtrt_id=" +
2805 2805
 					his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
2806 2806
 					"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
2807 2807
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -3554,7 +3554,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3554 3554
 		data["config"] = config
3555 3555
 
3556 3556
 		bytesData, _ := json.Marshal(data)
3557
-		req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
3557
+		req, _ := http.NewRequest("POST", "http://192.168.124.4:9532/"+"hbyb/2203", bytes.NewReader(bytesData))
3558 3558
 		resp, _ := client.Do(req)
3559 3559
 		defer resp.Body.Close()
3560 3560
 		body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3694,7 +3694,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3694 3694
 			var res ResultFour
3695 3695
 			if miConfig.MdtrtareaAdmvs == "421300" {
3696 3696
 				bytesData, _ := json.Marshal(data)
3697
-				req, _ := http.NewRequest("POST", "http://192.168.3.5:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
3697
+				req, _ := http.NewRequest("POST", "http://192.168.124.4:9532/"+"hbyb/2204", bytes.NewReader(bytesData))
3698 3698
 				resp, _ := client.Do(req)
3699 3699
 				defer resp.Body.Close()
3700 3700
 				body, ioErr := ioutil.ReadAll(resp.Body)
@@ -3904,7 +3904,7 @@ func (c *HisApiController) GetPreUploadInfo() {
3904 3904
 
3905 3905
 					if miConfig.MdtrtareaAdmvs == "421300" {
3906 3906
 
3907
-						api := "http://192.168.3.5:9532/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3907
+						api := "http://192.168.124.4:9532/" + "hbyb/2206?psn_no=" + his.PsnNo + "&mdtrt_id=" +
3908 3908
 							his.Number + "&chrg_bchno=" + chrg_bchno + "&org_name=" + miConfig.OrgName +
3909 3909
 							"&doctor=" + roles.UserName + "&fixmedins_code=" + miConfig.Code +
3910 3910
 							"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
@@ -4315,7 +4315,7 @@ func (c *HisApiController) Refund() {
4315 4315
 		var result string
4316 4316
 
4317 4317
 		if miConfig.MdtrtareaAdmvs == "421300" {
4318
-			api3 := "http://192.168.3.5:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
4318
+			api3 := "http://192.168.124.4:9532/" + "hbyb/2208?psn_no=" + order.PsnNo +
4319 4319
 				"&mdtrt_id=" + order.Number + "&setl_id=" + order.SetlId + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4320 4320
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4321 4321
 			resp3, requestErr3 := http.Get(api3)
@@ -4368,7 +4368,7 @@ func (c *HisApiController) Refund() {
4368 4368
 
4369 4369
 			if miConfig.MdtrtareaAdmvs == "421300" {
4370 4370
 
4371
-				api3 := "http://192.168.3.5:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
4371
+				api3 := "http://192.168.124.4:9532/" + "hbyb/2205?psn_no=" + order.PsnNo +
4372 4372
 					"&mdtrt_id=" + order.Number + "&chrg_bchno=" + order.Number + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4373 4373
 					"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4374 4374
 				resp3, requestErr3 := http.Get(api3)
@@ -4482,7 +4482,7 @@ func (c *HisApiController) RefundNumber() {
4482 4482
 		var res2 ResultSix
4483 4483
 		if miConfig.MdtrtareaAdmvs == "421300" {
4484 4484
 
4485
-			api3 := "http://192.168.3.5:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
4485
+			api3 := "http://192.168.124.4:9532/" + "hbyb/2202?psn_no=" + his.PsnNo +
4486 4486
 				"&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + roles.UserName + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
4487 4487
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
4488 4488
 			resp3, requestErr3 := http.Get(api3)
@@ -5253,7 +5253,7 @@ func (c *HisApiController) GetSettleAccounts() {
5253 5253
 	if config.IsOpen == 1 {
5254 5254
 		if miConfig.MdtrtareaAdmvs == "421300" {
5255 5255
 
5256
-			api := "http://192.168.3.5:9532/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5256
+			api := "http://192.168.124.4:9532/" + "hbyb/5203?psn_no=" + businessParams.PsnNo + "&mdtrt_id=" + businessParams.MdtrtId + "&setl_id=" + businessParams.SetlId +
5257 5257
 				"&org_name=" + miConfig.OrgName + "&doctor=" + baseParams.Doctor + "&fixmedins_code=" + miConfig.Code +
5258 5258
 				"&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
5259 5259
 			resp, requestErr := http.Get(api)