上传竞技场代码同步
This commit is contained in:
parent
5c353ed91e
commit
e182aae1a3
@ -7,7 +7,7 @@ import (
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
//参数校验
|
||||
// 参数校验
|
||||
func (this *apiComp) BuyCheck(session comm.IUserSession, req *pb.ArenaBuyReq) (errdata *pb.ErrorData) {
|
||||
if req.BuyNum == 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
@ -18,7 +18,7 @@ func (this *apiComp) BuyCheck(session comm.IUserSession, req *pb.ArenaBuyReq) (e
|
||||
return
|
||||
}
|
||||
|
||||
///获取自己的排行榜信息
|
||||
// /获取自己的排行榜信息
|
||||
func (this *apiComp) Buy(session comm.IUserSession, req *pb.ArenaBuyReq) (errdata *pb.ErrorData) {
|
||||
var (
|
||||
// global *cfg.GameGlobalData
|
||||
@ -49,8 +49,8 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ArenaBuyReq) (errdat
|
||||
return
|
||||
}
|
||||
this.module.modelArena.recoverTicket(session, info)
|
||||
|
||||
if maxbuy, err = this.module.ModuleTools.GetPriceGroupLen(comm.ArenaBuyType); err != nil {
|
||||
pricekey := this.module.ModuleTools.GetGlobalConf().ArenaBuy
|
||||
if maxbuy, err = this.module.ModuleTools.GetPriceGroupLen(pricekey); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_CacheReadError.ToString(),
|
||||
|
Loading…
Reference in New Issue
Block a user