abiao лет назад: 4
Родитель
Сommit
f332d2b1d8
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      go/gopath/src/fohow.com/apps/init.go

+ 3 - 1
go/gopath/src/fohow.com/apps/init.go

@@ -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) {