Browse Source

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

csx 3 years ago
parent
commit
ed2403bcd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/sg/his_api_controller.go

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

@@ -7502,7 +7502,7 @@ func (c *HisApiController) GetPatientInfo() {
7502 7502
 		var res10265 ResultTwo10265
7503 7503
 
7504 7504
 		if miConfig.Code == "H15049901371" {
7505
-			if err := json.Unmarshal([]byte(result), &res10265); err != nil {
7505
+			if err := json.Unmarshal(userJSONBytes, &res10265); err != nil {
7506 7506
 				utils.ErrorLog("解析失败:%v", err)
7507 7507
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7508 7508
 				return
@@ -7513,7 +7513,7 @@ func (c *HisApiController) GetPatientInfo() {
7513 7513
 			res.InfRefmsgid = res10265.InfRefmsgid
7514 7514
 
7515 7515
 		} else {
7516
-			if err := json.Unmarshal([]byte(result), &res); err != nil {
7516
+			if err := json.Unmarshal(userJSONBytes, &res); err != nil {
7517 7517
 				utils.ErrorLog("解析失败:%v", err)
7518 7518
 				c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
7519 7519
 				return