补贴仅限官方店铺使用

This commit is contained in:
luofei 2024-02-29 17:52:40 +08:00
parent fe1614ef0f
commit ba6c337fe2

View File

@ -564,6 +564,16 @@ class StoreOrderCreateRepository extends StoreOrderRepository
'status' => 0,
'is_fail' => 0
];
//抵扣券仅限官方店铺使用
$isOfficialStore = true;
foreach ($merchantCartList as $merchantCart) {
if ($merchantCart['type_id'] != 22) {
$isOfficialStore = false;
}
}
if (!$isOfficialStore || $source != 103) {
$ConsumptionWhere['type'] = 1;
}
if ($isPlatformCard) {
$platformConsumption = [];