diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index cb987b3..f9f71ef 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -1056,19 +1056,20 @@ public class PatientController { @TokenRequired public BaseResponse getPatientAttentionYn(String gzopengId) { BaseResponse baseResponse = new BaseResponse(); - if (StringUtil.isNotEmpty(gzopengId)) { + if (StringUtil.isEmpty(gzopengId)) { baseResponse.setErrorcode(1); baseResponse.setErrormsg("参数错误"); return baseResponse; } - if (StringUtil.isNotEmpty(AccessTokenServlet.accessToken)) { + if (StringUtil.isEmpty(AccessTokenServlet.accessToken)) { baseResponse.setErrorcode(1); baseResponse.setErrormsg("Token错误"); return baseResponse; } String result = HttpUtil.getData("https://api.weixin.qq.com/cgi-bin/user/info?access_token="+AccessTokenServlet.accessToken+"&openid="+gzopengId+"&lang=zh_CN"); + Map resultMap = JsonUtil.str2Map(result, HashMap.class); baseResponse.setErrorcode(0); - baseResponse.setObject(result); + baseResponse.setObject(resultMap); baseResponse.setErrormsg("成功"); return baseResponse; }