Documentation ¶
Index ¶
- Variables
- func InitLoginInstance()
- func QueryAccountBound(request *proto.ST_QueryAccountBoundRequest) *proto.ST_QueryAccountBoundResponse
- func SwitchAccount(request *proto.ST_SwitchAccountRequest) *proto.ST_SwitchAccountResponse
- func SyncAccountDetails(request *proto.ST_SyncAccountDetailsRequest) *proto.ST_SyncAccountDetailsResponse
- func UpdateAccountDetails(request *proto.ST_UpdateAccountDetailsRequest) *proto.ST_UpdateAccountDetailsResponse
- type LoginParam
- type LoginResult
- type LoginServer
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 ¶
func QueryAccountBound(request *proto.ST_QueryAccountBoundRequest) *proto.ST_QueryAccountBoundResponse
* @brief 处理账户查询
func SwitchAccount ¶
func SwitchAccount(request *proto.ST_SwitchAccountRequest) *proto.ST_SwitchAccountResponse
* @brief 处理切换账户
func SyncAccountDetails ¶
func SyncAccountDetails(request *proto.ST_SyncAccountDetailsRequest) *proto.ST_SyncAccountDetailsResponse
* @brief 同步账户详情
func UpdateAccountDetails ¶
func UpdateAccountDetails(request *proto.ST_UpdateAccountDetailsRequest) *proto.ST_UpdateAccountDetailsResponse
* @brief 处理更新账户详情
Types ¶
type LoginParam ¶
type LoginResult ¶
type LoginResult struct { Result proto.LoginReCode Uid string Host string Port string }
type LoginServer ¶
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
Click to show internal directories.
Click to hide internal directories.