月卡购买数据校验
This commit is contained in:
parent
ff6ea36a21
commit
e51de847ed
@ -8,6 +8,7 @@ import (
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/utils"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
@ -74,9 +75,10 @@ func (this *Privilege) Delivery(session comm.IUserSession, pId int32) (errdata *
|
||||
var (
|
||||
bFind bool
|
||||
cId int32
|
||||
conf *cfg.GamePrivilegeCardData
|
||||
err error
|
||||
)
|
||||
conf, err := this.configure.GetPrivilegeCard(pId)
|
||||
if err != nil {
|
||||
if conf, err = this.configure.GetPrivilegeCard(pId); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
||||
@ -84,6 +86,7 @@ func (this *Privilege) Delivery(session comm.IUserSession, pId int32) (errdata *
|
||||
}
|
||||
return
|
||||
}
|
||||
cId = pId
|
||||
// 是不是购买过
|
||||
list, err := this.modelPrivilege.getPrivilegeList(session.GetUserId())
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user