add toast
This commit is contained in:
parent
5afe4d6c4e
commit
cce6f9976c
|
@ -366,9 +366,13 @@ func WithdrawApply(ctx *gin.Context) {
|
|||
|
||||
time.Sleep(time.Second * 1)
|
||||
|
||||
data, ec := service.DefaultService.WithdrawApply(ctx, req)
|
||||
data, ec, err := service.DefaultService.WithdrawApply(ctx, req)
|
||||
if ec != errcode.ErrCodeVasSrvOk {
|
||||
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)
|
||||
return
|
||||
}
|
||||
|
|
|
@ -2054,7 +2054,7 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
|
|||
}
|
||||
transferResp, err = alipayCli.UniTransfer(ctx, transferParam)
|
||||
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
|
||||
}
|
||||
if transferResp == nil {
|
||||
|
|
|
@ -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})
|
||||
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 {
|
||||
logger.Error("_DefaultVeriCode.OpDelete fail, req: %v, code: %v, err: %v", util.ToJson(req), util.ToJson(vCode), err)
|
||||
ec = errcode.ErrCodeVasInvalidVerifycode
|
||||
|
|
Loading…
Reference in New Issue