|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"encoding/hex"
|
|
|
"fmt"
|
|
|
"fohow.com/apps/models/token_model"
|
|
|
+ "fohow.com/libs/lib_redis"
|
|
|
"fohow.com/libs/tool"
|
|
|
|
|
|
// "math/rand"
|
|
|
@@ -167,7 +168,9 @@ func (self *PermitController) XcxLogin() {
|
|
|
//赠送积分
|
|
|
go helpers.SendCent(wxUser.Id, inviteId)
|
|
|
}
|
|
|
- self.SetSession(apps.XcxSessionKey, key.SessionKey)
|
|
|
+ //self.SetSession(apps.XcxSessionKey, key.SessionKey)
|
|
|
+ sessionKey := lib_redis.GetKeySessionKey(wxUser.Id)
|
|
|
+ lib_redis.SetRedisValue(sessionKey, key.SessionKey, time.Hour*10)
|
|
|
beego.BeeLogger.Warn("XcxLogin SessionKey=%s", key.SessionKey)
|
|
|
if self.CruSession == nil {
|
|
|
self.ReturnError(401, apps.NoExist, "", nil)
|