Browse Source

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

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

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

5359
 		userJSONBytes, _ := json.Marshal(respJSON)
5359
 		userJSONBytes, _ := json.Marshal(respJSON)
5360
 		fmt.Println("log")
5360
 		fmt.Println("log")
5361
 		fmt.Println(string(userJSONBytes))
5361
 		fmt.Println(string(userJSONBytes))
5362
-		if err := json.Unmarshal(userJSONBytes, &res2); err != nil {
5362
+		if err := json.Unmarshal(userJSONBytes, &resSix10265); err != nil {
5363
 			utils.ErrorLog("解析失败:%v", err)
5363
 			utils.ErrorLog("解析失败:%v", err)
5364
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
5364
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
5365
 			return
5365
 			return
5366
 		}
5366
 		}
5367
 
5367
 
5368
+		res2.InfRefmsgid = resSix10265.InfRefmsgid
5369
+		res2.Output = resSix10265.Output
5370
+		res2.ErrMsg = resSix10265.ErrMsg
5371
+		res2.Cainfo = resSix10265.Cainfo
5372
+		res2.WarnMsg = resSix10265.WarnMsg
5373
+		infocode, _ := strconv.ParseInt(resSix10265.Infcode, 10, 64)
5374
+		res2.Infcode = infocode
5375
+
5368
 	} else {
5376
 	} else {
5369
 		var result string
5377
 		var result string
5370
 		var requestLog string
5378
 		var requestLog string