From 8f7ddddc448ed3beca45940b3642cec12f74f7ee Mon Sep 17 00:00:00 2001 From: ronger Date: Sun, 6 Mar 2022 11:09:32 +0800 Subject: [PATCH] =?UTF-8?q?:arrow=5Fup:=20=E4=BE=9D=E8=B5=96=E5=8D=87?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 36 ++++++++++++------- .../service/impl/WxUserServiceImpl.java | 7 ---- .../wx/miniapp/config/WxMaConfiguration.java | 2 +- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/pom.xml b/pom.xml index 2d18bc8..8d90720 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ 1.8 - 8.0.0 + 8.11.1 @@ -43,7 +43,7 @@ org.mybatis.spring.boot mybatis-spring-boot-starter - 2.2.0 + 2.2.2 @@ -101,7 +101,7 @@ com.alibaba fastjson - 1.2.78 + 1.2.79 @@ -130,17 +130,17 @@ commons-io commons-io - 2.7 + 2.11.0 org.apache.commons commons-text - 1.8 + 1.9 commons-codec commons-codec - 1.14 + 1.15 io.jsonwebtoken @@ -197,12 +197,12 @@ org.jodd jodd-http - 6.0.6 + 6.2.0 com.github.binarywang weixin-java-open - 4.0.0 + 4.2.5.B commons-codec @@ -221,7 +221,7 @@ com.thoughtworks.xstream xstream - 1.4.18 + 1.4.19 com.github.jedis-lock @@ -231,7 +231,7 @@ com.baidu.aip java-sdk - 4.16.2 + 4.16.5 org.slf4j @@ -273,12 +273,24 @@ cn.hutool hutool-core - 5.5.9 + 5.7.20 cn.hutool hutool-http - 5.5.9 + 5.7.20 + + + + com.warrenstrange + googleauth + 1.5.0 + + + commons-codec + commons-codec + + diff --git a/src/main/java/com/rymcu/forest/service/impl/WxUserServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/WxUserServiceImpl.java index 9a6c89a..f67d7d5 100644 --- a/src/main/java/com/rymcu/forest/service/impl/WxUserServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/WxUserServiceImpl.java @@ -45,18 +45,11 @@ public class WxUserServiceImpl extends AbstractService implements WxUser } private WxUser copyWxUser(WxMpUser wxMpUser, WxUser wxUser) { - wxUser.setNickname(wxMpUser.getNickname()); - wxUser.setHeadImgUrl(wxMpUser.getHeadImgUrl()); - wxUser.setCountry(wxMpUser.getCountry()); - wxUser.setProvince(wxMpUser.getProvince()); - wxUser.setCity(wxMpUser.getCity()); - wxUser.setSex(wxMpUser.getSex()); wxUser.setSubscribe(wxMpUser.getSubscribe()); wxUser.setSubscribeTime(wxMpUser.getSubscribeTime()); wxUser.setUnionId(wxMpUser.getUnionId()); wxUser.setOpenId(wxMpUser.getOpenId()); wxUser.setLanguage(wxMpUser.getLanguage()); - wxUser.setSexDesc(wxMpUser.getSexDesc()); return wxUser; } } diff --git a/src/main/java/com/rymcu/forest/wx/miniapp/config/WxMaConfiguration.java b/src/main/java/com/rymcu/forest/wx/miniapp/config/WxMaConfiguration.java index 73f28e6..2c4ddd0 100644 --- a/src/main/java/com/rymcu/forest/wx/miniapp/config/WxMaConfiguration.java +++ b/src/main/java/com/rymcu/forest/wx/miniapp/config/WxMaConfiguration.java @@ -92,7 +92,7 @@ public class WxMaConfiguration { service.getMsgService().sendSubscribeMsg(WxMaSubscribeMessage.builder() .templateId("此处更换为自己的模板id") .data(Lists.newArrayList( - new WxMaSubscribeMessage.Data("keyword1", "339208499"))) + new WxMaSubscribeMessage.MsgData("keyword1", "339208499"))) .toUser(wxMessage.getFromUser()) .build()); return null;