From 87ac9e92f1ba005ba5831cdb8a7f6d5436de7300 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 17 Jul 2021 17:14:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E6=A1=A3=E6=A1=88=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/views/custom/customer/index.vue | 64 ++++++++++++------- 1 file changed, 42 insertions(+), 22 deletions(-) diff --git a/stdiet-ui/src/views/custom/customer/index.vue b/stdiet-ui/src/views/custom/customer/index.vue index 8174962c0..e41791e88 100644 --- a/stdiet-ui/src/views/custom/customer/index.vue +++ b/stdiet-ui/src/views/custom/customer/index.vue @@ -42,7 +42,12 @@ - + - + - - + + - + - + - - - + + + Date: Mon, 19 Jul 2021 09:51:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=BB=B6=E9=95=BF=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E8=B4=A6=E5=8F=B7=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stdiet/web/controller/custom/WechatAppletController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java index 5680b9efa..6577c9c16 100644 --- a/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java +++ b/stdiet-admin/src/main/java/com/stdiet/web/controller/custom/WechatAppletController.java @@ -520,7 +520,7 @@ public class WechatAppletController extends BaseController { } // 更新时间超过7天,重新登录获取最新信息 - if (StringUtils.isEmpty(curWxUserInfo.getAvatarUrl()) || ChronoUnit.DAYS.between(DateUtils.dateToLocalDate(curWxUserInfo.getUpdateTime()), LocalDate.now()) >= 7) { + if (StringUtils.isEmpty(curWxUserInfo.getAvatarUrl()) || ChronoUnit.DAYS.between(DateUtils.dateToLocalDate(curWxUserInfo.getUpdateTime()), LocalDate.now()) >= 21) { return AjaxResult.error(5001, "信息缺失或者过期需要重新登录"); }