ソースを参照

移除memid,现在userid全部都用getuserid

dcsunny 4 年 前
コミット
0e1355f671
1 ファイル変更1 行追加10 行削除
  1. 1 10
      http/param/auth.go

+ 1 - 10
http/param/auth.go

@@ -5,7 +5,7 @@ import (
 	"encoding/json"
 )
 
-//GetUserID  临时的,account 新版本为accountid
+//GetUserID 为userid
 func GetUserID(c context.Context) int64 {
 	userID := c.Value("user_id")
 	if _, ok := userID.(int64); ok {
@@ -22,15 +22,6 @@ func GetAccountID(c context.Context) int64 {
 	return 0
 }
 
-//GetMemberID  临时的,account 新版本为userid
-func GetMemberID(c context.Context) int64 {
-	userID := c.Value("mem_id")
-	if _, ok := userID.(int64); ok {
-		return userID.(int64)
-	}
-	return 0
-}
-
 func GetAuthToken(c context.Context) string {
 	token := c.Value("token")
 	if _, ok := token.(string); ok {