From ee9688b912bb993b54252a26f8ad9e0e04df21c3 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 21 六月 2024 18:11:21 +0800 Subject: [PATCH] 修改bug --- ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/MemberServiceImpl.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/MemberServiceImpl.java b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/MemberServiceImpl.java index 55a5eb0..4c67702 100644 --- a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/MemberServiceImpl.java +++ b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/MemberServiceImpl.java @@ -89,9 +89,9 @@ //微信 private static final String ACCESS_TOKEN_HOST = "https://api.weixin.qq.com/cgi-bin/token"; - private static final String WX_APPID = "wxe91f1af7638aa5dd"; + private static final String WX_APPID = "wx69e3ac6e13a889b7"; - private static final String WX_SECRET = "a787e1a462715604e0c9528b6d8960d1"; + private static final String WX_SECRET = "1b8bcfcb681524ac553e72054e5271ef"; //支付寶 /** @@ -199,6 +199,7 @@ member.setUserId(sysUser.getUserId()); member.setDelFlag(0); member.setNickname("白酒用户"); + member.setPhone(appMiniLoginDto.getPhone()); member.setAvatar("https://hongruitang.oss-cn-beijing.aliyuncs.com/default.png"); member.setZfbOpenid(response.getOpenId()); this.save(member); @@ -258,6 +259,7 @@ member.setNickname("白酒用户"); member.setAvatar("https://hongruitang.oss-cn-beijing.aliyuncs.com/default.png"); member.setWxUnionid(unionid); + member.setPhone(appMiniLoginDto.getPhone()); member.setMiniOpenid(openid); this.save(member); appMiniLoginVo.setMiniOpenid(member.getMiniOpenid()); @@ -288,6 +290,7 @@ public Member getMembeid(MemberDTO memberDTO) { return this.getById(memberDTO.getMemberid()); } + @Override public void updateMembeid(MemberDTO memberDTO) { @@ -432,7 +435,7 @@ String plainData = null; if (isDataEncrypted) { try { - plainData = AlipayEncrypt.decryptContent(content, encryptType, "VSpPcLQjLSoTz6Yd7KNoyQ==", charset); + plainData = AlipayEncrypt.decryptContent(content, encryptType, "XABBSOeWDakvuG9TDez4Qg====", charset); } catch (AlipayApiException e) { //解密异常, 记录日志 e.getMessage(); @@ -510,6 +513,7 @@ .like(StringUtils.isNotBlank(query.getRealName()), Member::getRealName, query.getRealName()) .like(StringUtils.isNotBlank(query.getPhone()), Member::getPhone, query.getPhone()) + .orderByDesc(Member::getCreateTime) .page(new Page<>(query.getPageCurr(), query.getPageSize())); if (StringUtils.isEmpty(page.getRecords())) { return PageDTO.empty(page.getTotal(), page.getPages()); -- Gitblit v1.7.1