|
|
@@ -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() {
|