From 1572f45e72cc0fa15c029f9ee2a08474104435e6 Mon Sep 17 00:00:00 2001
From: selfcheer <selfcheer@gmail.com>
Date: 星期五, 19 七月 2024 00:48:43 +0800
Subject: [PATCH] 采购单产品列表去掉过滤重复产品的逻辑

---
 middleware/reset_pwd.go |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/middleware/reset_pwd.go b/middleware/reset_pwd.go
index c398a87..60a0d7d 100644
--- a/middleware/reset_pwd.go
+++ b/middleware/reset_pwd.go
@@ -16,7 +16,13 @@
 			return
 		}
 		claims := params.(*request.CustomClaims)
-		if !claims.ModifiedPwd {
+		if claims.ModifiedPwd == nil { //鍏煎娌℃湁ModifiedPwd鍊肩殑token
+			ctx.Fail(ecode.JWTExpire)
+			c.Abort()
+			return
+		}
+
+		if !*claims.ModifiedPwd {
 			ctx.Fail(ecode.ResetPwd)
 			c.Abort()
 			return

--
Gitblit v1.8.0