This commit is contained in:
parent
7c36b8c16f
commit
f01f9a3ecb
|
@ -141,3 +141,8 @@ type OpManualUnlockWechatParam struct {
|
|||
ProductId string `json:"product_id"` // 商品id
|
||||
Oid2 string `json:"oid2"` // oid2
|
||||
}
|
||||
|
||||
type OpRollbackZoneRefundStatusParam struct {
|
||||
Userid int64 `json:"userid"`
|
||||
StreamerUserid int64 `json:"streamer_userid"`
|
||||
}
|
||||
|
|
|
@ -318,6 +318,7 @@ func Init(r *gin.Engine) {
|
|||
opVasPayGroup.POST("wxpay_callback_manual", middleware.JSONParamValidator(vasproto.WxpayCallbackManualParam{}), WxpayCallbackManual)
|
||||
opVasPayGroup.POST("zone_refund_list", middleware.JSONParamValidator(zoneproto.OpZoneRefundListParam{}), OpZoneRefundList)
|
||||
opVasPayGroup.POST("manual_unlock_wechat", middleware.JSONParamValidator(zoneproto.OpManualUnlockWechatParam{}), OpManualUnlockWechat)
|
||||
opVasPayGroup.POST("rollback_zone_exit_status", middleware.JSONParamValidator(zoneproto.OpRollbackZoneRefundStatusParam{}), OpManualUnlockWechat)
|
||||
|
||||
// 慧用工
|
||||
extHvyogoGroup := r.Group("/ext/hvyogo")
|
||||
|
|
|
@ -75,3 +75,18 @@ func OpManualUnlockWechat(ctx *gin.Context) {
|
|||
}
|
||||
ReplyOk(ctx, nil)
|
||||
}
|
||||
|
||||
func OpRollbackZoneRefundStatus(ctx *gin.Context) {
|
||||
req := ctx.MustGet("client_req").(*zoneproto.OpRollbackZoneRefundStatusParam)
|
||||
ec, err := service.DefaultService.OpRollbackZoneRefundStatus(ctx, req)
|
||||
if ec != errcode.ErrCodeVasSrvOk {
|
||||
logger.Error("RefundOrder fail, req: %v, ec: %v", util.ToJson(req), ec)
|
||||
if err != nil {
|
||||
ReplyErrorMsg(ctx, err.Error())
|
||||
return
|
||||
}
|
||||
ReplyErrCodeMsg(ctx, ec)
|
||||
return
|
||||
}
|
||||
ReplyOk(ctx, nil)
|
||||
}
|
||||
|
|
|
@ -1175,3 +1175,15 @@ func (s *Service) VasIncomePage(ctx *gin.Context, req *vasproto.IncomePageReq) (
|
|||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (s *Service) OpRollbackZoneRefundStatus(ctx *gin.Context, req *zoneproto.OpRollbackZoneRefundStatusParam) (ec errcode.ErrCode, err error) {
|
||||
userAcnt, _ := _DefaultAccount.OpListByUserId(ctx, &accountproto.OpListByUserIdReq{UserId: goproto.Int64(req.Userid)})
|
||||
|
||||
err = _DefaultVas.SuperfanUnlockContact(ctx, nil, req.Mid, req.StreamerMid, req.Oid2)
|
||||
ec, err = errs.DealVasErr(err)
|
||||
if err != nil {
|
||||
logger.Error("OneStepUnlockContact fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
return
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue