1.提交缺失的东西
This commit is contained in:
@ -115,7 +115,7 @@ class GoodsLogic{
|
||||
//商品详情
|
||||
public static function getGoodsDetail($user_id,$id){
|
||||
|
||||
$goods = Goods::where(['id'=>$id,'status'=>1])->with(['goods_image','goods_item']);
|
||||
$goods = Goods::where(['id'=>$id,'status'=>1])->with(['goods_image','goods_item'])->find();
|
||||
if(empty($goods)){
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user