挂机设置

This commit is contained in:
meixiongfeng 2022-12-09 15:53:29 +08:00
parent 5ae9fa6037
commit b798c860ad

View File

@ -25,12 +25,12 @@ func (this *apiComp) AfkSet(session comm.IUserSession, req *pb.TrollAfkSetReq) (
code = pb.ErrorCode_DBError
return
}
troll.Buy = this.configure.GetTrollRule(comm.TrollBuy)
troll.Sell = this.configure.GetTrollRule(comm.TrollSell)
troll.AiCount = req.Count
troll.Buy = req.Buy //this.configure.GetTrollRule(comm.TrollBuy)
troll.Sell = req.Sell //this.configure.GetTrollRule(comm.TrollSell)
//troll.AiCount = req.Count
update["buy"] = troll.Buy
update["sell"] = troll.Sell
update["aiCount"] = troll.AiCount
//update["aiCount"] = troll.AiCount
this.module.ModifyTrollData(session.GetUserId(), update)
session.SendMsg(string(this.module.GetType()), TrollAfkSetResp, &pb.TrollAfkSetResp{Data: troll})
return