1.提交缺失的东西

This commit is contained in:
2025-05-16 13:38:57 +08:00
parent 175fafef5c
commit 554d028ac0
3 changed files with 58 additions and 1 deletions

View File

@ -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 [];
}