调整商品预览
This commit is contained in:
parent
4092436eb4
commit
3a4bcecece
@ -1153,7 +1153,9 @@ class ProductRepository extends BaseRepository
|
|||||||
];
|
];
|
||||||
|
|
||||||
$append = ['guaranteeTemplate','params'];
|
$append = ['guaranteeTemplate','params'];
|
||||||
|
if (empty($where['product_id']) || $productType != 0) {
|
||||||
$where['product_type'] = $productType;
|
$where['product_type'] = $productType;
|
||||||
|
}
|
||||||
$res = $this->dao->getWhere($where, $field, $with);
|
$res = $this->dao->getWhere($where, $field, $with);
|
||||||
if (!$res) return [];
|
if (!$res) return [];
|
||||||
switch ($res['product_type']) {
|
switch ($res['product_type']) {
|
||||||
|
@ -467,8 +467,10 @@ class SpuRepository extends BaseRepository
|
|||||||
$where = [
|
$where = [
|
||||||
'activity_id' => 0,
|
'activity_id' => 0,
|
||||||
'product_id' => $id,
|
'product_id' => $id,
|
||||||
'product_type' => $productType,
|
|
||||||
];
|
];
|
||||||
|
if (empty($id) || $productType != 0) {
|
||||||
|
$where['product_type'] = $productType;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
$_make = app()->make(StoreSeckillActiveRepository::class);
|
$_make = app()->make(StoreSeckillActiveRepository::class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user