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