|
@@ -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']];
|
|
|
}
|