Merge branch 'alipay_transfer_tip' into test

This commit is contained in:
lwl0608 2024-08-06 11:31:50 +08:00
commit 8a6de0408c
3 changed files with 8 additions and 4 deletions

View File

@ -366,9 +366,13 @@ func WithdrawApply(ctx *gin.Context) {
time.Sleep(time.Second * 1) time.Sleep(time.Second * 1)
data, ec := service.DefaultService.WithdrawApply(ctx, req) data, ec, err := service.DefaultService.WithdrawApply(ctx, req)
if ec != errcode.ErrCodeVasSrvOk { if ec != errcode.ErrCodeVasSrvOk {
logger.Error("WithdrawApply fail, req: %v, data: %v, ec: %v", util.ToJson(req), data, ec) logger.Error("WithdrawApply fail, req: %v, data: %v, ec: %v", util.ToJson(req), data, ec)
if err != nil {
ReplyErrorMsg(ctx, err.Error())
return
}
ReplyErrCodeMsg(ctx, ec) ReplyErrCodeMsg(ctx, ec)
return return
} }

View File

@ -2054,7 +2054,7 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
} }
transferResp, err = alipayCli.UniTransfer(ctx, transferParam) transferResp, err = alipayCli.UniTransfer(ctx, transferParam)
if err != nil { if err != nil {
logger.Error("UniTransfer fail, param: %v, err: %v", util.ToJson(transferParam), err) logger.Error("UniTransfer fail, param: %v, resp: %v, err: %v", util.ToJson(transferParam), util.ToJson(transferResp), err)
return return
} }
if transferResp == nil { if transferResp == nil {

View File

@ -610,7 +610,7 @@ func (s *Service) WithdrawSendVerifycode(ctx *gin.Context, req *vasproto.Withdra
} }
// 提现申请 // 提现申请
func (s *Service) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (data *vasproto.WithdrawApplyData, ec errcode.ErrCode) { func (s *Service) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (data *vasproto.WithdrawApplyData, ec errcode.ErrCode, err error) {
// 获取用户 // 获取用户
acntMap, _ := _DefaultAccount.GetAccountMapByMids(ctx, []int64{req.Mid}) acntMap, _ := _DefaultAccount.GetAccountMapByMids(ctx, []int64{req.Mid})
acnt, has := acntMap[req.Mid] acnt, has := acntMap[req.Mid]
@ -631,7 +631,7 @@ func (s *Service) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq
} }
// 检验完删除 // 检验完删除
err := _DefaultVeriCode.OpDelete(ctx, vCode.Id) err = _DefaultVeriCode.OpDelete(ctx, vCode.Id)
if err != nil { if err != nil {
logger.Error("_DefaultVeriCode.OpDelete fail, req: %v, code: %v, err: %v", util.ToJson(req), util.ToJson(vCode), err) logger.Error("_DefaultVeriCode.OpDelete fail, req: %v, code: %v, err: %v", util.ToJson(req), util.ToJson(vCode), err)
ec = errcode.ErrCodeVasInvalidVerifycode ec = errcode.ErrCodeVasInvalidVerifycode