dever 3 years ago
parent
commit
1e24a9a46f
2 changed files with 4 additions and 4 deletions
  1. 3 3
      app/mshop/lib/Buy.php
  2. 1 1
      app/store/admin/Order.php

+ 3 - 3
app/mshop/lib/Buy.php

@@ -667,7 +667,7 @@ class Buy
 
         $status = $config['status'][$info['status']];
 
-        $tk = Dever::db('shop/buy_order_refund')->find(array('order_id' => $info['id'], 'process' => 1));
+        $tk = Dever::db('shop/buy_order_refund')->find(array('order_id' => $info['id'], 'type' => 1));
 
         $cdate = date('Y-m-d H:i', $info['cdate']);
         if ($info['operdate']) {
@@ -686,8 +686,8 @@ class Buy
             $info['price'] = $info['p_price'];
         }
 
-        if ($tk && $tk['process'] == 1) {
-            $status .= '[申请' . $tk_status[$tk['status']].']';
+        if ($info['refund_status'] == 2 && $info['status'] != 8) {
+            $status .= '[申请报损中]';
         }
 
         $time = array();

+ 1 - 1
app/store/admin/Order.php

@@ -75,7 +75,7 @@ class Order extends Core
                 }
 
                 if ($v['refund_status'] == 2 && $v['status'] != 8) {
-                    $v['status_name'] .= '[缺货报损中]';
+                    $v['status_name'] .= '[申请报损中]';
                 }
                 $order = array();
                 if ($v['parent_type'] == 2) {