wangchuanjin 2 年之前
父節點
當前提交
aa3d5e19b1
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      go-xweb/httpsession/redissessionstore.go

+ 0 - 5
go-xweb/httpsession/redissessionstore.go

@@ -4,11 +4,9 @@ package httpsession
 
 import (
 	"encoding/json"
-	"strconv"
 	"sync"
 	"time"
 
-	. "app.yhyue.com/moapp/jybase/common"
 	"app.yhyue.com/moapp/jybase/redis"
 )
 
@@ -54,9 +52,6 @@ func (store *redisStore) GetMultiple(id Id) map[string]interface{} {
 	redis.SetExpire("session", string(id), timeout)
 	store.last = time.Now()
 	lock(id).Unlock()
-	if m["userId"] != nil && Int64All(m["positionType"]) == 1 {
-		m["userId"] = strconv.FormatInt(Int64All(m["positionId"]), 10)
-	}
 	return m
 }