|
|
@@ -52,6 +52,7 @@ class Index extends BaseController
|
|
|
$storeInfo['description'] = preg_replace_callback('#<img.*?src="([^"]*)"[^>]*>#i', function ($imagsSrc) {
|
|
|
return isset($imagsSrc[1]) && isset($imagsSrc[0]) ? str_replace($imagsSrc[1], str_replace('\\', '/', $imagsSrc[1]), $imagsSrc[0]) : '';
|
|
|
}, $storeInfo['description']);
|
|
|
+ $data['storeInfo'] = $storeInfo;
|
|
|
list($productAttr, $productValue) = ProductAttr::getProductAttrDetail($id, 0, 0);
|
|
|
$data['productAttr'] = $productAttr;
|
|
|
$prices = array_column($productValue, 'price');
|
|
|
@@ -60,6 +61,7 @@ class Index extends BaseController
|
|
|
$productValue = array_combine($keys, $productValue);
|
|
|
$data['productValue'] = $productValue;
|
|
|
$data['priceName'] = 0;
|
|
|
+ $data['good_list'] = Product::getGoodList(18, 'image,store_name,price,id,ot_price');
|
|
|
return app('json')->successful($data);
|
|
|
}
|
|
|
|