dever %!s(int64=3) %!d(string=hai) anos
pai
achega
ff1b58cc5f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/shop/lib/Refund.php

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

@@ -287,6 +287,10 @@ class Refund
             } else {
                 $update['where_id'] = $order['id'];
                 $update['operdate'] = time();
+                if (isset($order['ps_cash']) && $order['ps_cash'] > 0 && $order['status'] < 4) {
+                    # 配送费退掉
+                    $update['ps_cash'] = 0;
+                }
                 $update['status'] = 8;
                 $state = Dever::db($this->order_table)->update($update);
                 if ($state) {