shish 3 lat temu
rodzic
commit
eeda05e127

+ 4 - 6
app-hd/controllers/NoticeController.php

@@ -70,12 +70,10 @@ class NoticeController extends PublicController
                 $cg = PurchaseClass::getByCondition(['orderSn' => $orderSn], true);
 
                 //标记当天已收一次包装费,岭南批发市场用的功能
-                if (isset($cg->packCost) && $cg->packCost > 0) {
-                    $customId = $cg->customId ?? 0;
-                    $current = date("Y_m_d");
-                    $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
-                    Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
-                }
+                $customId = $cg->customId ?? 0;
+                $current = date("Y_m_d");
+                $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
+                Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
 
                 if (!empty($cg) && $cg->payStatus == 1) {
                     //微信通知

+ 4 - 5
app-hd/controllers/PurchaseController.php

@@ -337,11 +337,10 @@ class PurchaseController extends BaseController
             $transaction->commit();
 
             //标记当天已收一次包装费,岭南批发市场用的功能
-            if (isset($info->packCost) && $info->packCost > 0) {
-                $current = date("Y_m_d");
-                $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
-                Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
-            }
+            $current = date("Y_m_d");
+            $key = 'ghs_custom_today_has_get_pack_cost_' . $current . '_' . $customId;
+            Yii::$app->redis->executeCommand('SETEX', [$key, 86400, '1']);
+
 
             //app新订单通知
             $saleId = $info->saleId ?? 0;