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