dever 3 년 전
부모
커밋
ff1b58cc5f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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) {