Browse Source

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

csx 3 years ago
parent
commit
669b840f47
1 changed files with 10 additions and 1 deletions
  1. 10 1
      controllers/sg/his_api_controller.go

+ 10 - 1
controllers/sg/his_api_controller.go View File

5513
 		data["url"] = miConfig.Url
5513
 		data["url"] = miConfig.Url
5514
 		data["ak"] = miConfig.ChannelNumber
5514
 		data["ak"] = miConfig.ChannelNumber
5515
 		data["new_doctor_name"] = patientPrescription.Doctor
5515
 		data["new_doctor_name"] = patientPrescription.Doctor
5516
+		data["diag_code"] = sickConfig.CountryCode
5516
 
5517
 
5517
 		var ids []int64
5518
 		var ids []int64
5518
 
5519
 
5574
 				userJSONBytes, _ := json.Marshal(respJSON)
5575
 				userJSONBytes, _ := json.Marshal(respJSON)
5575
 				fmt.Println("log")
5576
 				fmt.Println("log")
5576
 				fmt.Println(string(userJSONBytes))
5577
 				fmt.Println(string(userJSONBytes))
5577
-				if err := json.Unmarshal(userJSONBytes, &res); err != nil {
5578
+				if err := json.Unmarshal(userJSONBytes, &resFour10265); err != nil {
5578
 					utils.ErrorLog("解析失败:%v", err)
5579
 					utils.ErrorLog("解析失败:%v", err)
5579
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
5580
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
5580
 					return
5581
 					return
5581
 				}
5582
 				}
5582
 
5583
 
5584
+				res.InfRefmsgid = resFour10265.InfRefmsgid
5585
+				res.Output = resFour10265.Output
5586
+				res.ErrMsg = resFour10265.ErrMsg
5587
+				res.Cainfo = resFour10265.Cainfo
5588
+				res.WarnMsg = resFour10265.WarnMsg
5589
+				infocode, _ := strconv.ParseInt(resFour10265.Infcode, 10, 64)
5590
+				res.Infcode = infocode
5591
+
5583
 			} else {
5592
 			} else {
5584
 
5593
 
5585
 				if miConfig.Code == "H15049901371" {
5594
 				if miConfig.Code == "H15049901371" {