瀏覽代碼

fixed bug.

zhouxnsz 9 月之前
父節點
當前提交
c2447ec4ab
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      token/token.go

+ 3 - 3
token/token.go

@@ -102,9 +102,9 @@ func Auth() gin.HandlerFunc {
 		}
 
 		// FIXME: - 针对POST接口,应判断传入TOKEN对应的用户是否正确(比如判断UserID或AccountID是否对得上等),后期处理
-		if c.Request.Method == "POST" {
-			c.Set("requserid", userID)
-		}
+		// if c.Request.Method == "POST" {
+		c.Set("requserid", userID)
+		// }
 
 		// 是否已开启APIKey检验模式
 		if config.SerCfg.GetApiKeyMode() {