|
@@ -7499,12 +7499,33 @@ func (c *HisApiController) GetPatientInfo() {
|
7499
|
7499
|
|
7500
|
7500
|
userJSONBytes, _ := json.Marshal(dat)
|
7501
|
7501
|
var res ResultTwo
|
7502
|
|
- if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
7503
|
|
- utils.ErrorLog("解析失败:%v", err)
|
7504
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
7505
|
|
- return
|
|
7502
|
+ var res10265 ResultTwo10265
|
|
7503
|
+
|
|
7504
|
+ if miConfig.Code == "H15049901371" {
|
|
7505
|
+ if err := json.Unmarshal([]byte(result), &res10265); err != nil {
|
|
7506
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
7507
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
7508
|
+ return
|
|
7509
|
+ }
|
|
7510
|
+ res.ErrMsg = res10265.ErrMsg
|
|
7511
|
+ infocode, _ := strconv.ParseInt(res10265.Infcode, 10, 64)
|
|
7512
|
+ res.Infcode = infocode
|
|
7513
|
+ res.InfRefmsgid = res10265.InfRefmsgid
|
|
7514
|
+
|
|
7515
|
+ } else {
|
|
7516
|
+ if err := json.Unmarshal([]byte(result), &res); err != nil {
|
|
7517
|
+ utils.ErrorLog("解析失败:%v", err)
|
|
7518
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
7519
|
+ return
|
|
7520
|
+ }
|
7506
|
7521
|
}
|
7507
|
7522
|
|
|
7523
|
+ //if err := json.Unmarshal(userJSONBytes, &res); err != nil {
|
|
7524
|
+ // utils.ErrorLog("解析失败:%v", err)
|
|
7525
|
+ // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
7526
|
+ // return
|
|
7527
|
+ //}
|
|
7528
|
+
|
7508
|
7529
|
if res.Infcode != 0 {
|
7509
|
7530
|
c.ServeSuccessJSON(map[string]interface{}{
|
7510
|
7531
|
"failed_code": -10,
|