This commit is contained in:
邹宗楠
2022-07-12 14:29:46 +08:00
parent c262cdf644
commit 9ecc91077b
2 changed files with 9 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ import (
)
// SendPayInfo2Ali 发起支付
func SendPayInfo2Ali(payOrder *model.WithdrawalRecord, param *model.AddWithdrawalRecordReq) error {
func SendPayInfo2Ali(payOrder *model.WithdrawalRecord, param *model.AddWithdrawalRecordReq) (*model.WithdrawalRecord, error) {
if payOrder.WithdrawalMoney <= alipayapi.MinWithdrawalMoney {
aliResult, err := api.AliPayAPI.Withdrawal4AliPay(&alipayapi.WithdrawalParam{
OutBizNo: payOrder.OrderID,
@@ -30,7 +30,7 @@ func SendPayInfo2Ali(payOrder *model.WithdrawalRecord, param *model.AddWithdrawa
payOrder.PayTime = utils.Str2Time(aliResult.TransDate)
}
}
return nil
return payOrder, nil
}
// UpdateUserMoney 修改数据库