fix: b_mid 和 mid 逻辑
This commit is contained in:
parent
944595752c
commit
4b2a4d92c6
|
@ -225,8 +225,7 @@ type ZoneRefundResp struct {
|
||||||
type ZoneRefundListReq struct {
|
type ZoneRefundListReq struct {
|
||||||
base.BaseRequest
|
base.BaseRequest
|
||||||
Zid int64 `json:"zid"` // 空间id
|
Zid int64 `json:"zid"` // 空间id
|
||||||
Mid int64 `json:"mid"` // 用户 id
|
Uid int64 `json:"mid"` // 用户 id
|
||||||
BMid int64 `json:"b_mid"` // 主播 id
|
|
||||||
AuditType int64 `json:"audit_type"` // 审核状态 1:待处理,2:已处理
|
AuditType int64 `json:"audit_type"` // 审核状态 1:待处理,2:已处理
|
||||||
Offset int `json:"offset"`
|
Offset int `json:"offset"`
|
||||||
Limit int `json:"limit"`
|
Limit int `json:"limit"`
|
||||||
|
|
|
@ -132,7 +132,7 @@ func ZoneRefundV2(ctx *gin.Context) {
|
||||||
|
|
||||||
func ZoneRefundList(ctx *gin.Context) {
|
func ZoneRefundList(ctx *gin.Context) {
|
||||||
req := ctx.MustGet("client_req").(*vasproto.ZoneRefundListReq)
|
req := ctx.MustGet("client_req").(*vasproto.ZoneRefundListReq)
|
||||||
if req.Mid <= 0 || req.BMid <= 0 {
|
if req.Mid <= 0 || req.Uid <= 0 {
|
||||||
logger.Error("ZoneRefundList, invalid param, req: %v", util.ToJson(req))
|
logger.Error("ZoneRefundList, invalid param, req: %v", util.ToJson(req))
|
||||||
ReplyErrCodeMsg(ctx, errcode.ErrCodeBadParam)
|
ReplyErrCodeMsg(ctx, errcode.ErrCodeBadParam)
|
||||||
return
|
return
|
||||||
|
|
|
@ -359,7 +359,7 @@ func (m *Mongo) GetZoneRefundList(ctx *gin.Context, bMid int64, refundsStatusLis
|
||||||
doc := m.GetZoneRefund()
|
doc := m.GetZoneRefund()
|
||||||
|
|
||||||
query := qmgo.M{
|
query := qmgo.M{
|
||||||
"BMid": bMid,
|
"b_mid": bMid,
|
||||||
"refunds_status": qmgo.M{
|
"refunds_status": qmgo.M{
|
||||||
"$in": refundsStatusList,
|
"$in": refundsStatusList,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1215,7 +1215,7 @@ func (v *Vas) ZoneRefundList(ctx *gin.Context, req *vasproto.ZoneRefundListReq)
|
||||||
} else if req.AuditType == 2 {
|
} else if req.AuditType == 2 {
|
||||||
refundsStatusList = append(refundsStatusList, dbstruct.RefundsApproved, dbstruct.RefundsRejected, dbstruct.RefundsOvertime)
|
refundsStatusList = append(refundsStatusList, dbstruct.RefundsApproved, dbstruct.RefundsRejected, dbstruct.RefundsOvertime)
|
||||||
}
|
}
|
||||||
list, err = v.store.GetZoneRefundList(ctx, req.BMid, refundsStatusList)
|
list, err = v.store.GetZoneRefundList(ctx, req.Mid, refundsStatusList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue