修复:退款后 - 订单相关退款处理错误,导致未使用豆豆积分抵扣的订单不执行退款流程
This commit is contained in:
parent
b9cba1aaec
commit
2a39a207f2
|
|
@ -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);
|
||||||
// 退款成功 计算平台抽成相关退款内容
|
// 退款成功 计算平台抽成相关退款内容
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue