代码拉取完成,页面将自动刷新
同步操作将从 叶向栋/common 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package common
const Account string = "account"
const FIGHT string = "fight"
const GAME string = "game"
const (
MessageDefault = 0
)
const (
Position = "pos"
)
type HeroType uint32
var (
Physical HeroType = 0 // 物理
Magic HeroType = 1 // 法术
)
//
//const (
// // common shop items, player can
// MaxScore string = "_max_score" // 最大积分
// TotalPer string = "_total_per" // 最大积分对应的万分比
//
// DayMaxScore string = "_day_max_score" // 每日最大积分
// DayMaxScoreTime string = "_day_max_score_time" // 每日最大积分时间
//
// WeekMaxScore string = "_week_max_score" // 每周最大积分
// WeekMaxScoreTime string = "_week_max_score_time" // 每周最大积分时间
//)
//const (
// // 游戏数据从8000 开始
// Games int32 = 8000
// // 每个游戏暂定50个数据
// GameInterval int32 = 50
//)
//
//const (
// // 游戏次数
// GameNum int32 = 1
// // 皮肤id
// SkinId int32 = 2
//)
//
//const (
// // 游戏appid
// AppName_QMXCD string = "qmxcd"
//)
//
//func GetGameNumPropId(appId string) int32{
// return GetGameBeginId(appId) + GameNum
//}
//
//func GetSkinPropId(appId string) int32{
// return GetGameBeginId(appId) + SkinId
//}
//
//func GetGameBeginId(appId string) int32 {
// switch appId {
// case AppName_QMXCD:
// return Games+ GameInterval* 0
// }
// return Games
//}
//func GetAttriTOValue(attrs []*user_center_service.PlayerAttribute, key string) int64{
// if attri := common.SelectAttr(attrs,key);attri != nil{
// if value,err := strconv.ParseInt(attri.GetAttri().GetStr(),10,32); err ==nil{
// return value
// }
// }
// return 0
//}
//
//func GetAttriValue(attrs []*user_center_service.PlayerAttribute, key string) string{
// if attri := common.SelectAttr(attrs,key);attri != nil{
// return attri.GetAttri().GetStr()
// }
// return ""
//}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。