gm优化
This commit is contained in:
parent
30eab6db4b
commit
ef1125b75d
@ -393,13 +393,8 @@ func ReqGmCommand_(player *Player, Command string) error {
|
||||
}
|
||||
player.PushClientRes(CardMod.NotifyCard())
|
||||
case "resetRankUser":
|
||||
O := G_GameLogicPtr.RankMgr.getAllRank(RANK_TYPE_USER)
|
||||
for _, v := range O {
|
||||
Uid := strconv.Itoa(v.Uid)
|
||||
TimeSort := fmt.Sprintf("0.%d", RANK_TIME_SORT-GoUtil.Now())
|
||||
TimeSortF, _ := strconv.ParseFloat(TimeSort, 64)
|
||||
db.RedisZAdd(RANK_USER, Uid, v.Score+TimeSortF)
|
||||
}
|
||||
db.RedisDelKey(RANK_USER)
|
||||
db.RedisDelKey(fmt.Sprintf("%s_%s", RANK_COUNTRY_USER, conf.Server.CountryCode))
|
||||
case "addFriendStar":
|
||||
FriendTreasureMod := player.PlayMod.getFriendTreasureMod()
|
||||
FriendTreasureMod.AddStar(200)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user