소스 검색

修复 后台删除商品分类报错

萤火科技 5 년 전
부모
커밋
0fe5645bd7
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/store/model/GoodsCategoryRel.php

+ 1 - 1
app/store/model/GoodsCategoryRel.php

@@ -31,7 +31,7 @@ class GoodsCategoryRel extends GoodsCategoryRelModel
         return (new static)->alias('m')
             ->join('goods', 'goods.goods_id = m.goods_id')
             ->where('m.category_id', '=', $categoryId)
-            ->where('g.is_delete', '=', 0)
+            ->where('goods.is_delete', '=', 0)
             ->count();
     }