Browse Source

一些功能

Kirin 3 years ago
parent
commit
03665f2171
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/order/StoreOrder.php

+ 1 - 1
app/admin/controller/order/StoreOrder.php

@@ -1162,7 +1162,7 @@ class StoreOrder extends AuthController
         $products = StoreExchange::where('is_del', 0)->where('status', 1)->order('sort DESC,add_time DESC')
             ->select();
         foreach ($products as $v) {
-            $list = StoreProductAttrValue::where('type', 5)->where('product_id', $v['product_id']);
+            $list = StoreProductAttrValue::where('type', 5)->where('product_id', $v['id'])->select();
             foreach ($list as $vv) {
                 $attrs[] = ['value' => $v['id'] . '|' . $v['product_id'] . '|' . $vv['unique'], 'label' => $v['title'] . '[' . $vv['suk'] . ']' . ':¥' . $vv['price']];
             }