This commit is contained in:
lwl0608 2024-12-09 17:19:39 +08:00
parent e33b76ba66
commit 95a927c26f
1 changed files with 9 additions and 9 deletions

View File

@ -1995,16 +1995,16 @@ func (v *Vas) WithdrawApply(ctx *gin.Context, req *vasproto.WithdrawApplyReq) (t
}
// 获取能提现的支付宝
//alipayAcnt, err := v.store.GetAvailableWithdrawAlipayAccount(ctx, money)
//if err != nil {
// logger.Error("GetAvailableWithdrawAlipayAccount fail, err: %v", err)
// err = fmt.Errorf("提现维护中,请稍后再试")
// return
//}
//alipayCli := alipaycli.GetAlipayClientByAppId(alipayAcnt.AppId)
//logger.Info("Get AlipayAcnt ok, aliAcnt: %v, req: %v", util.ToJson(alipayCli), util.ToJson(req))
alipayAcnt, err := v.store.GetAvailableWithdrawAlipayAccount(ctx, money)
if err != nil {
logger.Error("GetAvailableWithdrawAlipayAccount fail, err: %v", err)
err = fmt.Errorf("提现维护中,请稍后再试")
return
}
alipayCli := alipaycli.GetAlipayClientByAppId(alipayAcnt.AppId)
logger.Info("Get AlipayAcnt ok, aliAcnt: %v, req: %v", util.ToJson(alipayCli), util.ToJson(req))
alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe)
//alipayCli := alipaycli.GetAlipayClientByAppId(alipaycli.AppIdXinYiDaoLe)
// 添加提现订单
wOrder = &dbstruct.WithdrawOrder{