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

8

... ... @@ -19,7 +19,7 @@ class GoodsdetailsController extends WeChatBaseController{
public function Goods_details(){
$goods_id = $this -> request -> param();
$data = Db::name('goods') -> alias('a') -> join('classification b','a.classify_id = b.id','LEFT') -> where('a.id',$goods_id['goods_id']) -> find();
$data = Db::name('goods') -> alias('a') -> field("a.*,b.name") -> join('classification b','a.classify_id = b.id','LEFT') -> where('a.id',$goods_id['goods_id']) -> find();
$price = explode('.',$data['price']);
$pricing = explode('.',$data['pricing']);
$data['price0'] = $price[0];
... ...