|
@@ -2206,6 +2206,7 @@ func (c *HisApiController) GetCheckAccount() {
|
2206
|
2206
|
return
|
2207
|
2207
|
}
|
2208
|
2208
|
body, ioErr := ioutil.ReadAll(resp.Body)
|
|
2209
|
+ fmt.Println(body)
|
2209
|
2210
|
if ioErr != nil {
|
2210
|
2211
|
utils.ErrorLog("接口返回数据读取失败: %v", ioErr)
|
2211
|
2212
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
@@ -2217,6 +2218,7 @@ func (c *HisApiController) GetCheckAccount() {
|
2217
|
2218
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
2218
|
2219
|
return
|
2219
|
2220
|
}
|
|
2221
|
+
|
2220
|
2222
|
respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
|
2221
|
2223
|
userJSONBytes, _ := json.Marshal(respJSON)
|
2222
|
2224
|
|
|
@@ -2303,7 +2305,7 @@ func (c *HisApiController) GetCheckDetailAccount() {
|
2303
|
2305
|
"&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs +
|
2304
|
2306
|
"&secret_key=" + miConfig.SecretKey +
|
2305
|
2307
|
"&org_name=" + miConfig.OrgName +
|
2306
|
|
- "&doctor="
|
|
2308
|
+ "&doctor=某人"
|
2307
|
2309
|
|
2308
|
2310
|
resp, requestErr := http.Get(api)
|
2309
|
2311
|
if requestErr != nil {
|