|
|
@@ -305,8 +305,8 @@ func (self *PermitController) XcxLogin() {
|
|
|
//设置code对应的 redis openId unionId 值
|
|
|
openid_key := lib_redis.GetOpenIdRedisKey(code)
|
|
|
unionid_key := lib_redis.GetUnionIdRedisKey(code)
|
|
|
- lib_redis.SetRedisValue(openid_key, key.Openid, time.Duration(60*60)*time.Second)
|
|
|
- lib_redis.SetRedisValue(unionid_key, key.Unionid, time.Duration(60*60)*time.Second)
|
|
|
+ lib_redis.SetRedisValue(openid_key, key.Openid, time.Duration(30*60)*time.Second)
|
|
|
+ lib_redis.SetRedisValue(unionid_key, key.Unionid, time.Duration(30*60)*time.Second)
|
|
|
|
|
|
sId := self.CruSession.SessionID()
|
|
|
// beego.BeeLogger.Warn("XcxLogin sId=%s", sId)
|