def

package
v0.0.0-...-52d6a69 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisKeyAccountGate  = "account_gateinfo"
	RedisKeyGateAccounts = "gate_accounts"
)

预定义redis key

Variables

This section is empty.

Functions

func GetUserToken

func GetUserToken(redis *redis.Client, charid uint64) string

func HttpPostDataStatistics

func HttpPostDataStatistics(charid uint64, mapset map[string]interface{}, sortVal, tvmid, url, secret, mode string) (errcode string, resp *network.HttpResponse)

func HttpRequestCheckWechatBound

func HttpRequestCheckWechatBound(charid uint64, token, tvmid string)

检查是否绑定微信

func HttpRequestDecrCoins

func HttpRequestDecrCoins(charid uint64, token, tvmid string, count int32, desc string) bool

扣除平台金币

func HttpRequestFinanceQuery

func HttpRequestFinanceQuery(charid uint64, token, tvmid string) (errocde string, coin, diamond int32)

获得平台金币和钻石

func HttpRequestIncrCoins

func HttpRequestIncrCoins(charid uint64, token, tvmid string, count int32, desc string) bool

增加金币,需要绑定微信号

func HttpRequestIncrDiamonds

func HttpRequestIncrDiamonds(charid uint64, token, tvmid string, count int32, desc string) bool

增加钻石,需要绑定微信号

func HttpRequestNewUser

func HttpRequestNewUser(tvmid, token, username string, charid uint64)

func HttpRequestNewUserArglist

func HttpRequestNewUserArglist(arglist []interface{}) []interface{}

新建角色

func HttpRequestUserBattleCount

func HttpRequestUserBattleCount(tvmid, token string, charid uint64, playtype string, palycount int32)

func HttpRequestUserBattleCountArglist

func HttpRequestUserBattleCountArglist(arglist []interface{}) []interface{}

推送战斗次数(开房间次数)

func HttpRequestUserLevel

func HttpRequestUserLevel(tvmid, token string, charid uint64, level uint32)

func HttpRequestUserLevelArglist

func HttpRequestUserLevelArglist(arglist []interface{}) []interface{}

推送角色等级

func HttpRequestUserOnlineTime

func HttpRequestUserOnlineTime(tvmid, token string, charid uint64, tm_online int64)

func HttpRequestUserOnlineTimeArglist

func HttpRequestUserOnlineTimeArglist(arglist []interface{}) []interface{}

推送在线时长,在线时间,单位分钟

func HttpRequestUserResourceConsume

func HttpRequestUserResourceConsume(tvmid, token string, charid uint64, price uint32)

func HttpRequestUserResourceConsumeArglist

func HttpRequestUserResourceConsumeArglist(arglist []interface{}) []interface{}

推送资源消耗,price 等值人民币金额,单位分

func HttpRequestUserResourceEarn

func HttpRequestUserResourceEarn(tvmid, token string, charid uint64, price uint32)

func HttpRequestUserResourceEarnArglist

func HttpRequestUserResourceEarnArglist(arglist []interface{}) []interface{}

推送资源获取,price 等值人民币金额,单位分

func HttpRequestUserVictory

func HttpRequestUserVictory(tvmid, token string, charid uint64, victype string, count int32)

func HttpRequestUserVictoryArglist

func HttpRequestUserVictoryArglist(arglist []interface{}) []interface{}

胜利次数,拿大奖次数

func MakeNoticeText

func MakeNoticeText(text string, color string, size int32) string

组装带颜色字体的公告内容

func SendSms

func SendSms(phone string) (authcode string)

发送短信

Types

This section is empty.

Jump to

Keyboard shortcuts

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