shish před 4 roky
rodič
revize
fb3fa5aa68
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      biz/shop/classes/ShopExtClass.php

+ 5 - 5
biz/shop/classes/ShopExtClass.php

@@ -35,16 +35,16 @@ class ShopExtClass extends BaseClass
         $reachDate = $order->reachDate ?? '';
         if (!empty($reachDate) && $reachDate != '0000-00-00') {
             $readPeriod = $order->reachPeriod ?? 0;
-            $period = explode($readPeriod, ':');
+            $period = explode(':', $readPeriod);
             $periodName = implode($period, '点');
             if ($reachDate == date("Y-m-d")) {
-                $sound .= ',今天' . $periodName . "前送";
+                $sound .= ',今天' . $periodName . "前送";
             } elseif ($reachDate == date("Y-m-d", strtotime("+1 day"))) {
-                $sound .= ',明天' . $periodName . "前送";
+                $sound .= ',明天' . $periodName . "前送";
             } elseif ($reachDate == date("Y-m-d", strtotime("+2 day"))) {
-                $sound .= ',后天' . $periodName . "前送";
+                $sound .= ',后天' . $periodName . "前送";
             } else {
-                $sound .= date("d", strtotime($reachDate)) . '号' . $periodName . "前送";
+                $sound .= date("d", strtotime($reachDate)) . '号' . $periodName . "前送";
             }
         }
         $url = "https://speaker.17laimai.cn/notify.php?id={$lbSn}&token=HK1626595800&version=3&message=" . $sound;