no message

This commit is contained in:
hellcat committed 2025-04-08 17:27:52 +08:00
1 parent 59b02ed935
commit d82caed022
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -329,6 +329,7 @@ final class HookController
$sStartTime = strtotime("-$iDay days");
$aOrderList = Order::where('update_time', '>=', $sStartTime)
->whereIn('status', ['activated', 'pending_activation']) // 添加状态条件
->select('coupon',
\App\Services\DB::raw('count(*) as total'),
\App\Services\DB::raw('SUM(price) as total_price'))
@@ -339,7 +340,7 @@ final class HookController
$sMsg = '';
foreach ($aOrderList as $row) {
$sMsg .= "\n\n";
$sMsg .= $row['coupon'] . ':' . $row['total_price'] . ':' . $row['total'];
$sMsg .= $row['coupon'].' - '.$row['total_price'].' / ' . $row['total'];
}
$this->sendMessage($sMsg);
@@ -351,11 +352,12 @@ final class HookController
$this->sendMessage($errorMsg);
// 返回错误响应
Http::response(200, '内部服务器错误');
Http::response(500, '内部服务器错误');
}
}
// 节点列表(简洁)
// /nodeList