主线红点优化
This commit is contained in:
parent
38dc8b896a
commit
6880c23432
@ -132,7 +132,7 @@ func (this *Mainline) CheckPoint(uid string) bool {
|
||||
}
|
||||
}
|
||||
if !bFind { // 没找到 显示红点
|
||||
return false
|
||||
return true
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
@ -152,7 +152,6 @@ func (this *modelSmithy) CalculationSmithy(uid string, smithy *pb.DBSmithy) {
|
||||
mapData["clang"] = smithy.Clang // 正在做的
|
||||
|
||||
this.module.ModifySmithyData(uid, mapData) // 同步数据
|
||||
|
||||
}
|
||||
|
||||
func (this *modelSmithy) CalculationDeskSkillLv(uid string, Smithy *pb.DBSmithy) {
|
||||
|
@ -25,8 +25,8 @@ func (this *apiComp) AfkSet(session comm.IUserSession, req *pb.TrollAfkSetReq) (
|
||||
code = pb.ErrorCode_DBError
|
||||
return
|
||||
}
|
||||
troll.Buy = req.Buy
|
||||
troll.Sell = req.Sell
|
||||
troll.Buy = this.configure.GetTrollRule(comm.TrollBuy)
|
||||
troll.Sell = this.configure.GetTrollRule(comm.TrollSell)
|
||||
troll.AiCount = req.Count
|
||||
update["buy"] = troll.Buy
|
||||
update["sell"] = troll.Sell
|
||||
|
@ -296,7 +296,7 @@ func (this *Troll) QueryRankList() (ranks []string, gold []int64, err error) {
|
||||
)
|
||||
tableName := "trollRank"
|
||||
|
||||
if result, err = this.modelTroll.Redis.ZRevRange(tableName, 0, 50).Result(); err != nil {
|
||||
if result, err = this.modelTroll.Redis.ZRevRange(tableName, 0, comm.MaxRankList).Result(); err != nil {
|
||||
this.Errorln(err)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user