Browse Source

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

csx 3 years ago
parent
commit
ebf99bf567
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

1977
 				respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
1977
 				respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
1978
 				result, _ := json.Marshal(respJSON)
1978
 				result, _ := json.Marshal(respJSON)
1979
 
1979
 
1980
-				if err := json.Unmarshal([]byte(result), &res); err != nil {
1980
+				if err := json.Unmarshal([]byte(result), &resThree); err != nil {
1981
 					utils.ErrorLog("解析失败:%v", err)
1981
 					utils.ErrorLog("解析失败:%v", err)
1982
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
1982
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
1983
 					return
1983
 					return
1986
 			} else {
1986
 			} else {
1987
 				result, requestLog := service.Gdyb2201(res.Output.Baseinfo.PsnNo, insutype, IdCardNo, miConfig.OrgName, roles.UserName, ipt_otp_no, department.Name, miConfig.Code, department.Number, doctor_id, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type)
1987
 				result, requestLog := service.Gdyb2201(res.Output.Baseinfo.PsnNo, insutype, IdCardNo, miConfig.OrgName, roles.UserName, ipt_otp_no, department.Name, miConfig.Code, department.Number, doctor_id, miConfig.InsuplcAdmdvs, miConfig.MdtrtareaAdmvs, miConfig.SecretKey, id_card_type)
1988
 				saveLog(result, requestLog, "2201", "挂号")
1988
 				saveLog(result, requestLog, "2201", "挂号")
1989
-				if err := json.Unmarshal([]byte(result), &res); err != nil {
1989
+				if err := json.Unmarshal([]byte(result), &resThree); err != nil {
1990
 					utils.ErrorLog("解析失败:%v", err)
1990
 					utils.ErrorLog("解析失败:%v", err)
1991
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
1991
 					c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
1992
 					return
1992
 					return