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

5

... ... @@ -121,8 +121,11 @@ class PersonalcenterController extends WeChatBaseController{
$data_goods[] = Db::name('goods') -> where('id',$val['goods_id']) -> find();
}
foreach($data_goods as $key => $val){
$price = explode('.',$val['price']);
$classification_name = Db::name('classification') -> where('id',$val['classify_id']) -> find();
$data_goods[$key]['classification_name'] = $classification_name['name'];
$data_goods[$key]['price0'] = $price[0];
$data_goods[$key]['price1'] = $price[1];
}
dump($data_goods);die;
return $this -> fetch();
... ...