init.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package user_controller
  2. import (
  3. // "fmt"
  4. // "math/rand"
  5. // "strconv"
  6. // "strings"
  7. // "time"
  8. // "d"
  9. // "github.com/alidayu"
  10. // "github.com/astaxie/beego"
  11. "github.com/astaxie/beego/context"
  12. // "github.com/astaxie/beego/httplib"
  13. "fohow.com/apps"
  14. // "fohow.com/cache"
  15. // "fohow.com/apps/models/project_join_model"
  16. // "fohow.com/apps/models/project_model"
  17. )
  18. var (
  19. exceptCheckUserLoginAction = []string{"SysUserBind", "BindingTel", "UpdateWxUserInfo",
  20. "CheckLogin", "GenerateQrcode",
  21. "GetInviteList", "GetMonthlyInviteList", "OneClickBindingTel", "BindingWxPhone", "SetWxUserInviter", "Get"}
  22. exceptCheckWxUserLoginAction = []string{"SysUserBind", "CheckLogin"}
  23. )
  24. type UserController struct {
  25. apps.BaseController
  26. }
  27. func (self *UserController) Init(ctx *context.Context, controllerName, actionName string, app interface{}) {
  28. self.BaseController.Init(ctx, controllerName, actionName, app)
  29. self.ExceptCheckUserLoginAction = exceptCheckUserLoginAction
  30. self.ExceptCheckWxUserLoginAction = exceptCheckWxUserLoginAction
  31. }