修复:退款后 - 订单相关退款处理错误,导致未使用豆豆积分抵扣的订单不执行退款流程

This commit is contained in:
wuhui_zzw 2024-01-03 16:44:26 +08:00
parent b9cba1aaec
commit 2a39a207f2
1 changed files with 0 additions and 1 deletions

View File

@ -40,7 +40,6 @@ class OrderAgreeRefundEvent{
->toArray(); ->toArray();
foreach($refundProductList as $refundProductInfo){ foreach($refundProductList as $refundProductInfo){
// 判断:当前商品是否存在豆豆积分抵扣情况 // 判断:当前商品是否存在豆豆积分抵扣情况
if((float)$refundProductInfo['product']['use_legumes_integral'] <= 0) continue;
if((int)$refundProductInfo['refund_num'] <= 0) continue; if((int)$refundProductInfo['refund_num'] <= 0) continue;
$refundRate = (float)sprintf("%.2f",(int)$refundProductInfo['refund_num'] / (int)$refundProductInfo['product']['product_num'] * 100); $refundRate = (float)sprintf("%.2f",(int)$refundProductInfo['refund_num'] / (int)$refundProductInfo['product']['product_num'] * 100);
// 退款成功 计算平台抽成相关退款内容 // 退款成功 计算平台抽成相关退款内容