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

+ 3 - 3
app/shop/lib/Refund.php

@@ -241,11 +241,11 @@ class Refund
                     # 检查这个订单下的商品是不是都退了
                     $total = Dever::db($this->goods_table)->total(array('order_id' => $order['id'], 'status' => 1));
 
-                    if ($order['status'] == 5) {
-                        $update['status'] = 6;
-                    } elseif ($total <= 0) {
+                    if ($total <= 0) {
                         $update['operdate'] = time();
                         $update['status'] = 8;
+                    } elseif ($order['status'] == 5) {
+                        $update['status'] = 6;
                     }
 
                     if ($update) {