logic

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoogleClientID   = "1088218652561-nsep9abpgrl1mti1meioa1fg6q7aadil.apps.googleusercontent.com"
	XTeaKey          = "slorufjyepvufifu"
	FBAppID          = "391102284641302"
	FBAppSecret      = "7f536637ad6b545776ec5e778b2beb53"
	TTConsumerKey    = "mplqnLxaXE61P6dgQ3es9Obst"
	TTConsumerSecret = "zSPcq2HObykelRj2LhzPzvgZyebjgbUOLg659cZgtkhes55080"
)

Functions

func InitLoginInstance

func InitLoginInstance()

func QueryAccountBound

* @brief 处理账户查询

func SwitchAccount

* @brief 处理切换账户

func SyncAccountDetails

* @brief 同步账户详情

func UpdateAccountDetails

* @brief 处理更新账户详情

Types

type LoginParam

type LoginParam struct {
	AccountName  string
	IDToken      string
	Password     string
	Secret       string
	LoginType    uint32
	ResultChanId int64
	RemoteIP     string
}

type LoginResult

type LoginResult struct {
	Result proto.LoginReCode
	Uid    string
	Host   string
	Port   string
}

type LoginServer

type LoginServer struct {
	TwitterConfig *oauth1.Config
	// contains filtered or unexported fields
}
var (
	Login_Instance *LoginServer
)

func (*LoginServer) GetLastLoginRole

func (this *LoginServer) GetLastLoginRole(user *GameDB.User) *GameDB.User

选择最近1次登陆过的账号登陆

func (*LoginServer) IsInList

func (this *LoginServer) IsInList(lType proto.ListType, value string) bool

func (*LoginServer) Login

func (this *LoginServer) Login(userName, password, idToken, secret, remoteIP string, loginType uint32, puk string) *LoginResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL