From fecab95f939c2acf1bfa0bf9bdd68bbf9882880c Mon Sep 17 00:00:00 2001 From: shiyang <316555390@qq.com> Date: Wed, 16 Feb 2022 17:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E5=90=8E=E8=8E=B7=E5=8F=96=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=85=AC=E4=BC=97=E5=8F=B7=E7=9A=84OpenId-=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=89=8D=E7=AB=AF=E5=88=A4=E6=96=ADsubscribe=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=AFnull?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/talkonlineweb/controller/ArticleController.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java index 2111727..1f6dcf6 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/ArticleController.java @@ -406,13 +406,11 @@ public class ArticleController { patient.setGzopenid(openid); //更新到登录患者的gzopenid lymsPatientService.updateById(patient); - //检查是否关注了公众号 + //检查是否关注了公众号(前端判断subscribe是否是null) String subscribe = WeiXinUtil.getIsWxGZH(openid); - if(StringUtil.isNotEmpty(subscribe)){ - baseResponse.setObject(subscribe); - baseResponse.setErrormsg("成功"); - return baseResponse; - } + baseResponse.setObject(subscribe); + baseResponse.setErrormsg("成功"); + return baseResponse; } } } catch (Exception e) { -- 1.8.3.1