...
|
...
|
@@ -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];
|
...
|
...
|
|