|
|
@@ -5,12 +5,11 @@ import (
|
|
|
"fohow.com/apps"
|
|
|
"fohow.com/apps/helpers"
|
|
|
"fohow.com/apps/models/user_model"
|
|
|
+ "fohow.com/libs/lib_redis"
|
|
|
"github.com/astaxie/beego"
|
|
|
)
|
|
|
|
|
|
func (self *UserController) BindingWxPhoneNew() {
|
|
|
- sessionKey1, _ := self.GetSession(apps.XcxSessionKey).(string)
|
|
|
- beego.BeeLogger.Warn("XcxLogin SessionKey1=%s", sessionKey1)
|
|
|
|
|
|
wxUser := self.GetCurrentWxUser(false)
|
|
|
|
|
|
@@ -20,8 +19,9 @@ func (self *UserController) BindingWxPhoneNew() {
|
|
|
}
|
|
|
|
|
|
var tel string
|
|
|
-
|
|
|
- sessionKey, _ := self.GetSession(apps.XcxSessionKey).(string)
|
|
|
+ wxUserKey := lib_redis.GetKeySessionKey(wxUser.Id)
|
|
|
+ _, sessionKey := lib_redis.GetSimpleValue(wxUserKey)
|
|
|
+ //sessionKey, _ := self.GetSession(apps.XcxSessionKey).(string)
|
|
|
if sessionKey == "" {
|
|
|
//self.ReturnError(403, apps.UserNeedLogin, "", nil)
|
|
|
}
|