no message
This commit is contained in:
parent
59b02ed935
commit
d82caed022
@ -35,7 +35,7 @@ $oHttp->aData = [
|
||||
'type' => 'private'
|
||||
],
|
||||
'date' => 1610000000,
|
||||
"text" => "\/reportCoupon#3",
|
||||
"text" => "\/reportCoupon#333",
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user