|
@@ -172,6 +172,7 @@ class StoreCart extends BaseModel
|
|
|
if (!count($list)) return compact('valid', 'invalid');
|
|
|
$now = time();
|
|
|
$store_order = 0;
|
|
|
+ $user = 0;
|
|
|
foreach ($list as $k => $cart) {
|
|
|
if ($cart['seckill_id']) {
|
|
|
$product = StoreSeckill::field($seckillInfoField)
|
|
@@ -276,6 +277,11 @@ class StoreCart extends BaseModel
|
|
|
if (($valid[$k]['productInfo']['is_best'] ?? 0) > 0) {
|
|
|
$store_order = 1;
|
|
|
}
|
|
|
+ if (($valid[$k]['productInfo']['is_best'] ?? 0) > 0) {
|
|
|
+ $user = 1;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
unset($valid[$k]['uid'], $valid[$k]['is_del'], $valid[$k]['is_new'], $valid[$k]['is_pay'], $valid[$k]['add_time']);
|
|
|
if (isset($valid[$k]['productInfo'])) {
|
|
@@ -289,7 +295,7 @@ class StoreCart extends BaseModel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return compact('valid', 'invalid', 'store_order');
|
|
|
+ return compact('valid', 'invalid', 'store_order','user');
|
|
|
}
|
|
|
|
|
|
/**
|