浏览代码

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

csx 3 年前
父节点
当前提交
ed2403bcd9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/sg/his_api_controller.go

+ 2 - 2
controllers/sg/his_api_controller.go 查看文件

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