挂机设置
This commit is contained in:
parent
5ae9fa6037
commit
b798c860ad
@ -25,12 +25,12 @@ func (this *apiComp) AfkSet(session comm.IUserSession, req *pb.TrollAfkSetReq) (
|
|||||||
code = pb.ErrorCode_DBError
|
code = pb.ErrorCode_DBError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
troll.Buy = this.configure.GetTrollRule(comm.TrollBuy)
|
troll.Buy = req.Buy //this.configure.GetTrollRule(comm.TrollBuy)
|
||||||
troll.Sell = this.configure.GetTrollRule(comm.TrollSell)
|
troll.Sell = req.Sell //this.configure.GetTrollRule(comm.TrollSell)
|
||||||
troll.AiCount = req.Count
|
//troll.AiCount = req.Count
|
||||||
update["buy"] = troll.Buy
|
update["buy"] = troll.Buy
|
||||||
update["sell"] = troll.Sell
|
update["sell"] = troll.Sell
|
||||||
update["aiCount"] = troll.AiCount
|
//update["aiCount"] = troll.AiCount
|
||||||
this.module.ModifyTrollData(session.GetUserId(), update)
|
this.module.ModifyTrollData(session.GetUserId(), update)
|
||||||
session.SendMsg(string(this.module.GetType()), TrollAfkSetResp, &pb.TrollAfkSetResp{Data: troll})
|
session.SendMsg(string(this.module.GetType()), TrollAfkSetResp, &pb.TrollAfkSetResp{Data: troll})
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user