|
|
@@ -376,6 +376,8 @@ func checkWxUserLogin(ctx *context.Context) {
|
|
|
//return
|
|
|
}
|
|
|
wxUserId, ok := ctx.Input.Session(SessionWxUserKey).(int64)
|
|
|
+
|
|
|
+ beego.BeeLogger.Warn("------wxUserId %d", wxUserId)
|
|
|
if ok {
|
|
|
_, ok := ctx.Input.Session(SessionUserKey).(int64)
|
|
|
if !ok {
|
|
|
@@ -424,7 +426,7 @@ func checkWxUserLogin(ctx *context.Context) {
|
|
|
}
|
|
|
inputToken = authorizationData[1]
|
|
|
err, tel := tool.CheckToken(inputToken)
|
|
|
- user := user_model.GetByTel(tel, false)
|
|
|
+ user := user_model.GetByTel(tel, true)
|
|
|
wxUser := user_model.GetWxUserByUserId(user.Id, true)
|
|
|
|
|
|
if err != nil || (user == nil) || (wxUser == nil) {
|