作者 anyv
1 个管道 的构建 通过 耗费 0 秒

首页

... ... @@ -24,7 +24,7 @@ class IndexController extends WeChatBaseController
//热门推荐
$data_goods_hot = Db::name('goods') -> alias('a') -> field('a.*,b.name') -> join('classification b','a.classify_id = b.id','LEFT') -> where("recommend_hot=1 and type = 1") -> select();
foreach($data_goods_hot as $key => $val){
$price = explode('.',$data_goods_hot['price']);
$price = explode('.',$data_goods_hot[$key]['price']);
$data_goods_hot[$key]['price0'] = $price[0];
$data_goods_hot[$key]['price1'] = $price[1];
}
... ...