dever 3 years ago
parent
commit
283f25b576
2 changed files with 3 additions and 2 deletions
  1. 1 0
      app/shop/database/buy_order.php
  2. 2 2
      app/shop/src/Excel.php

+ 1 - 0
app/shop/database/buy_order.php

@@ -119,6 +119,7 @@ return array
     'order' => 99,
     'status' => $status,
     'refund_status' => $refund_status,
+    'config_type' => $type,
     'end' => array
     (
         'insert' => 'shop/lib/manage.buyOrderUpdate',

+ 2 - 2
app/shop/src/Excel.php

@@ -391,6 +391,7 @@ class Excel
         $status = Dever::db('shop/buy_order')->config['status'];
         //$refund_status = Dever::db('shop/buy_order')->config['refund_status'];
         $info_type = Dever::db($table)->config['config_type'];
+        $order_type = Dever::db('shop/buy_order')->config['config_type'];
 
         foreach ($data as $k => $v) {
             if (!is_array($v)) {
@@ -419,9 +420,8 @@ class Excel
                 $d = array
                 (
                     $source,
-                    $info['sid'],
                     $info['name'],
-                    $info_type[$info['type']],
+                    $order_type[$v['type']],
 
                     $v['order_num'],
                     $v['num'],