no message
This commit is contained in:
parent
219cfb009b
commit
d9089690e9
@ -35,7 +35,7 @@ $oHttp->aData = [
|
|||||||
'type' => 'private'
|
'type' => 'private'
|
||||||
],
|
],
|
||||||
'date' => 1610000000,
|
'date' => 1610000000,
|
||||||
"text" => "\/duckFind jp03",
|
"text" => "\/reportWidth",
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -60,6 +60,7 @@ EOL;
|
|||||||
$jobs->reportBandWidth();
|
$jobs->reportBandWidth();
|
||||||
$jobs->resetFreeUserBandwidth();
|
$jobs->resetFreeUserBandwidth();
|
||||||
$jobs->sendDailyTrafficReport();
|
$jobs->sendDailyTrafficReport();
|
||||||
|
$jobs->clearTodayWidth();
|
||||||
|
|
||||||
// 每日清除前一天残留TgStep
|
// 每日清除前一天残留TgStep
|
||||||
$jobs->clearTgStep();
|
$jobs->clearTgStep();
|
||||||
|
|||||||
@ -103,6 +103,18 @@ final class HookController
|
|||||||
http_response_code(200);exit;
|
http_response_code(200);exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 流量报告
|
||||||
|
// /reportWidth
|
||||||
|
if (strpos($sText, '/reportWidth') === 0 || strpos($sText, '\/reportWidth') === 0) {
|
||||||
|
|
||||||
|
$jobs = new \App\Services\Cron();
|
||||||
|
|
||||||
|
$jobs->reportBandWidth();
|
||||||
|
|
||||||
|
Http::response(200, 'ok');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// 查找用户
|
// 查找用户
|
||||||
if (strpos($sText, '/userFind') === 0 || strpos($sText, '\/userFind') === 0) {
|
if (strpos($sText, '/userFind') === 0 || strpos($sText, '\/userFind') === 0) {
|
||||||
|
|
||||||
|
|||||||
@ -671,7 +671,6 @@ final class Cron
|
|||||||
|
|
||||||
// var_dump($sTgReport);
|
// var_dump($sTgReport);
|
||||||
(new Telegram())->send(0, $sTgReport);
|
(new Telegram())->send(0, $sTgReport);
|
||||||
Zhuanfas::query()->update(['today_width' => 0]);
|
|
||||||
|
|
||||||
// 流量报告,机器
|
// 流量报告,机器
|
||||||
$oTgSendFormat = new TgSendFormat();
|
$oTgSendFormat = new TgSendFormat();
|
||||||
@ -710,7 +709,13 @@ final class Cron
|
|||||||
|
|
||||||
// var_dump($sTgReport);
|
// var_dump($sTgReport);
|
||||||
(new Telegram())->send(0, $sTgReport);
|
(new Telegram())->send(0, $sTgReport);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function clearTodayWidth(): void
|
||||||
|
{
|
||||||
Ducks::query()->update(['today_width' => 0]);
|
Ducks::query()->update(['today_width' => 0]);
|
||||||
|
Zhuanfas::query()->update(['today_width' => 0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function reportBandWidth_back(): void
|
public static function reportBandWidth_back(): void
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user