no message

This commit is contained in:
hellcat 2025-04-08 17:34:07 +08:00
parent d82caed022
commit 6495b46ec4

View File

@ -339,8 +339,12 @@ final class HookController
$sMsg = ''; $sMsg = '';
foreach ($aOrderList as $row) { foreach ($aOrderList as $row) {
if (!$coupon) {
$coupon = '无';
}
$coupon = str_replace('.', '#', $row['coupon']);
$sMsg .= "\n\n"; $sMsg .= "\n\n";
$sMsg .= $row['coupon'].' - '.$row['total_price'].' / ' . $row['total']; $sMsg .= $coupon . ' - ' . $row['total_price'] . ' / ' . $row['total'];
} }
$this->sendMessage($sMsg); $this->sendMessage($sMsg);
@ -357,8 +361,6 @@ final class HookController
} }
// 节点列表(简洁) // 节点列表(简洁)
// /nodeList // /nodeList
if (strpos($sText, '/nodeList') === 0 || strpos($sText, '\/nodeList') === 0) { if (strpos($sText, '/nodeList') === 0 || strpos($sText, '\/nodeList') === 0) {