no message
This commit is contained in:
1 parent
07a306ec4e
commit
75e99e183c
3 files changed
+32
-2
No files matched your search
@@ -124,6 +124,7 @@ final class HookController
|
||||
'node修改' => 'nodeOption#name#11 haha',
|
||||
'节点like' => 'nodeLike#duck jp02',
|
||||
'node删除' => 'nodeDel 18',
|
||||
'node复制' => 'nodeCopy 18',
|
||||
];
|
||||
|
||||
$this->sendMessage(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
@@ -261,6 +262,34 @@ final class HookController
|
||||
|
||||
}
|
||||
|
||||
// 复制节点
|
||||
// /nodeCopy 11
|
||||
if (strpos($sText, '/nodeCopy') === 0 || strpos($sText, '\/nodeCopy') === 0) {
|
||||
|
||||
list(, $iNodeId) = explode(" ", $sText, 2);
|
||||
|
||||
$oHttp = new Http();
|
||||
|
||||
$oHttp->sMethod = "post";
|
||||
$oHttp->sToUrl = $_ENV['baseUrl']."/api/tg/node/".$iNodeId."/copy";
|
||||
$oHttp->bIsJson = true;
|
||||
$oHttp->aData = $aData;
|
||||
|
||||
$r = @json_decode($oHttp->send(), true);
|
||||
|
||||
if ($r["ret"] == 1) {
|
||||
$sMessage = "成功";
|
||||
} else {
|
||||
$sMessage = "失败";
|
||||
Http::response(500, json_encode($aData));
|
||||
}
|
||||
|
||||
$this->sendMessage($sMessage);
|
||||
|
||||
Http::response(200, 'ok');
|
||||
|
||||
}
|
||||
|
||||
// 用户报表
|
||||
// /reportUser_day_7 && /reportUser_date_2025-02-02 && /reportUser_date_2025-02-02_2025-03-03
|
||||
if (strpos($sText, '/reportUser') === 0 || strpos($sText, '\/reportUser') === 0) {
|
||||
|
||||
Reference in new issue
Block a user