no message
This commit is contained in:
parent
bd933e333b
commit
ca1ce4d5e4
@ -256,12 +256,16 @@ final class HookController
|
|||||||
|
|
||||||
// 用户报表
|
// 用户报表
|
||||||
// /reportUser_day 7 && /
|
// /reportUser_day 7 && /
|
||||||
if (strpos($sText, '/reportUser_') === 0 || strpos($sText, '\/reportUser_') === 0) {
|
if (strpos($sText, '/reportUser') === 0 || strpos($sText, '\/reportUser') === 0) {
|
||||||
|
|
||||||
@list(, $sOption1, $sOption2, $sOption3) = explode("_", $sText, 4);
|
@list(, $sOption1, $sOption2, $sOption3) = explode("_", $sText, 4);
|
||||||
|
|
||||||
|
$sMsg = '?';
|
||||||
|
|
||||||
if ($sOption1 == 'day') {
|
if ($sOption1 == 'day') {
|
||||||
|
|
||||||
$sMsg = (new ServiceTgReportUser())->ByDay($sOption2);
|
$sMsg = (new ServiceTgReportUser())->ByDay($sOption2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($sOption1 == 'date') {
|
if ($sOption1 == 'date') {
|
||||||
@ -739,7 +743,7 @@ final class HookController
|
|||||||
return $sText;
|
return $sText;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function sendMessage($sText) {
|
private function sendMessage($sText = '?') {
|
||||||
|
|
||||||
if ($_ENV['is_loc'] === true) {
|
if ($_ENV['is_loc'] === true) {
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user