|
@@ -1977,7 +1977,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1977
|
1977
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
1978
|
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
|
1981
|
utils.ErrorLog("解析失败:%v", err)
|
1982
|
1982
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1983
|
1983
|
return
|
|
@@ -1986,7 +1986,7 @@ func (c *HisApiController) GetRegisterInfo() {
|
1986
|
1986
|
} else {
|
1987
|
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
|
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
|
1990
|
utils.ErrorLog("解析失败:%v", err)
|
1991
|
1991
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1992
|
1992
|
return
|