dever 3 years ago
parent
commit
cc0a760c0f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app/shop/lib/Refund.php

+ 5 - 0
app/shop/lib/Refund.php

@@ -155,6 +155,11 @@ class Refund
                 } else {
                     $p_cash = 0;
                 }
+
+                if (isset($data['ps_cash']) && $data['ps_cash'] > 0 && $data['status'] >= 4) {
+                    # 已发货不退配送费
+                    $cash -= $data['ps_cash'];
+                }
             }
 
             if ($cash > 0) {