|
@@ -16,7 +16,16 @@ class ProductClass extends BaseClass
|
|
|
{
|
|
{
|
|
|
//阿东开5支老是会出现5扎情况跟踪
|
|
//阿东开5支老是会出现5扎情况跟踪
|
|
|
$mainId = $shop->mainId ?? 0;
|
|
$mainId = $shop->mainId ?? 0;
|
|
|
- if (!empty($productList) && $mainId == 644) {
|
|
|
|
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
|
|
+ if ($mainId != 742 || $mainId != 50) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if ($mainId != 644) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!empty($productList)) {
|
|
|
$adIds = [];
|
|
$adIds = [];
|
|
|
foreach ($productList as $adItem) {
|
|
foreach ($productList as $adItem) {
|
|
|
if (isset($adItem['property']) && $adItem['property'] == 1 && $adItem['unitType'] == 0 && $adItem['num'] == 5) {
|
|
if (isset($adItem['property']) && $adItem['property'] == 1 && $adItem['unitType'] == 0 && $adItem['num'] == 5) {
|