修改获取快递订单详情验证

This commit is contained in:
richboo111
2022-07-26 18:14:26 +08:00
parent d0b242e2ea
commit 4ff61f9a39
2 changed files with 2 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ var (
)
//余额支付 微信补差值
func PayByBalance(ctx *jxcontext.Context, orderID string, payType, restPrice int, appID, vendorPayType string) (errMsg string, err error) {
func PayByBalance(ctx *jxcontext.Context, orderID string, restPrice, payType int, vendorPayType, appID string) (errMsg string, err error) {
var (
db = dao.GetDB()
)
@@ -146,7 +146,7 @@ func PayByBalance(ctx *jxcontext.Context, orderID string, payType, restPrice int
}
}()
if orderInfo.Status == NotPay {
if userBill.AccountBalance > 0 {
if userBill.AccountBalance > 0 && restPrice == 0 {
//余额 全款支付
if userBill.AccountBalance > orderInfo.PayPrice && userBill.AccountBalance-orderInfo.PayPrice > 0 {
if err = financial.AddExpendUpdateAccount(txDB, userBill, model.BillTypePayByAccountBalance, orderInfo.PayPrice, 0); err != nil {