|
@@ -53,7 +53,7 @@ class Index extends BaseController
|
|
|
$data = Product::getProductList($where);
|
|
|
foreach ($data['list'] as $k => $v) {
|
|
|
if($v['price'] == 0) {
|
|
|
- $data['list'][$k]['price'] = round($v['ot_price'] * 1.15, 2);
|
|
|
+ $data['list'][$k]['price'] = round($v['ot_price'] * 1.05, 2);
|
|
|
}
|
|
|
$data['list'][$k]['market_price'] = round($data['list'][$k]['price'] * 1.2, 2);
|
|
|
$score = Db::name("product_score")->where('product_id', $v['id'])->find();
|
|
@@ -102,7 +102,7 @@ class Index extends BaseController
|
|
|
return isset($imagsSrc[1]) && isset($imagsSrc[0]) ? str_replace($imagsSrc[1], str_replace('\\', '/', $imagsSrc[1]), $imagsSrc[0]) : '';
|
|
|
}, $storeInfo['description']);
|
|
|
if($storeInfo['price'] == 0){
|
|
|
- $storeInfo['price'] = round($storeInfo['ot_price'] * 1.15, 2);
|
|
|
+ $storeInfo['price'] = round($storeInfo['ot_price'] * 1.05, 2);
|
|
|
}
|
|
|
$storeInfo['market_price'] = round($storeInfo['price'] * 1.2, 2);
|
|
|
$score = Db::name("product_score")->where('product_id', $id)->find();
|