Your Name 2 years ago
parent
commit
f97e2a969c
2 changed files with 5 additions and 3 deletions
  1. 3 2
      learn/active/database/order.php
  2. 2 1
      learn/active/lib/Manage.php

+ 3 - 2
learn/active/database/order.php

@@ -17,9 +17,10 @@ $status = array
 (
     1 => '待支付',
     2 => '已支付',
+    7 => '已支付(有退款)',
     3 => '已关闭',#超时未支付
-    4 => '已完成',
-    5 => '已完成(有退款)',
+    // 4 => '已完成',
+    // 5 => '已完成(有退款)',
     6 => '已退款',#(全部退款)
 );
 $active = function()

+ 2 - 1
learn/active/lib/Manage.php

@@ -667,7 +667,8 @@ Class Manage
                 if ($type == 1 || ($price == $data['price']) || ($data['num'] == $where['refund_num'])) {
                     $ids = Dever::db('active/order')->update($where);
                 } else {
-                    $where['status'] = 2;
+                    // $where['status'] = 2;
+                    $where['status'] = 7;
                     $ids = Dever::db('active/order')->update($where);
                 }
                 if ($type == 2) {