|
|
@@ -129,7 +129,9 @@ class ProductService extends BaseService
|
|
|
$preSellItem = [];
|
|
|
if ($itemInfoData) {
|
|
|
foreach ($itemInfoData as $v) {
|
|
|
- if (isset($v['discountPrice']) && $v['discountPrice'] > 0) {
|
|
|
+ $reachNum = $v['reachNum'] ?? 0;
|
|
|
+ $reachNumDiscount = $v['reachNumDiscount'] ?? 0;
|
|
|
+ if ((isset($v['discountPrice']) && $v['discountPrice'] > 0) || ($reachNum > 0 && $reachNumDiscount > 0)) {
|
|
|
$v['classId'] = self::TJ_CLASS_ID;
|
|
|
$v['className'] = '今日特价';
|
|
|
$tjItem[] = $v;
|