no message
This commit is contained in:
parent
53102731df
commit
62e7d870e4
@ -121,7 +121,7 @@ final class HookController
|
||||
'duck列表&转发' => 'duckList',
|
||||
'duck查找' => 'duckFind jp02',
|
||||
'转发重置' => 'zhuanfaReset-youshi 2025-02-02',
|
||||
'节点修改' => 'nodeOption_name_11 haha',
|
||||
'node修改' => 'nodeOption@name@11 haha',
|
||||
'节点like' => 'nodeLike_duck jp02',
|
||||
];
|
||||
|
||||
@ -164,11 +164,15 @@ final class HookController
|
||||
unset($aUser['api_token']);
|
||||
unset($aUser['is_dark_mode']);
|
||||
unset($aUser['locale']);
|
||||
|
||||
$aUser['transfer_today'] => Tools::flowToGB($aUser['transfer_today']);
|
||||
$aUser['transfer_total'] => Tools::flowToGB($aUser['transfer_total']);
|
||||
$aUser['transfer_enable'] => Tools::flowToGB($aUser['transfer_enable']);
|
||||
} else {
|
||||
$aUser = ["not have id" => $iUserId];
|
||||
}
|
||||
|
||||
$this->sendMessage(json_encode($aUser, JSON_PRETTY_PRINT));
|
||||
$this->sendMessage(json_encode($aUser, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
|
||||
Http::response(200, 'ok');
|
||||
|
||||
@ -188,13 +192,14 @@ final class HookController
|
||||
$v['create_time'] = date("Y-m-d H:i:m", $v['create_time']);
|
||||
$v['update_time'] = date("Y-m-d H:i:m", $v['update_time']);
|
||||
$v['product_content'] = json_decode($v['product_content']);
|
||||
Tools::flowToGB
|
||||
$aOrderNew[] = $v;
|
||||
}
|
||||
} else {
|
||||
$aOrderNew = ["not have id" => $iUserId];
|
||||
}
|
||||
|
||||
$this->sendMessage(json_encode($aOrderNew, JSON_PRETTY_PRINT));
|
||||
$this->sendMessage(json_encode($aOrderNew, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
|
||||
Http::response(200, 'ok');
|
||||
|
||||
@ -312,9 +317,9 @@ final class HookController
|
||||
|
||||
$aData = Ducks::where('code', $sCode)->first()->toArray();
|
||||
|
||||
$aData['use_width'] = Tools::flowToGB($aData['use_width']).'g';
|
||||
$aData['max_width'] = Tools::flowToGB($aData['max_width']).'g';
|
||||
$aData['today_width'] = Tools::flowToGB($aData['today_width']).'g';
|
||||
$aData['use_width'] = Tools::flowToGB($aData['use_width']).'GB';
|
||||
$aData['max_width'] = Tools::flowToGB($aData['max_width']).'GB';
|
||||
$aData['today_width'] = Tools::flowToGB($aData['today_width']).'GB';
|
||||
|
||||
$this->sendMessage(json_encode($aData, JSON_PRETTY_PRINT));
|
||||
|
||||
@ -584,12 +589,12 @@ final class HookController
|
||||
}
|
||||
|
||||
// 节点设置变更
|
||||
// /nodeOption_name_1 haha
|
||||
if (strpos($sText, '/nodeOption_') === 0 || strpos($sText, '\/nodeOption_') === 0) {
|
||||
// /nodeOption@name@1 haha
|
||||
if (strpos($sText, '/nodeOption') === 0 || strpos($sText, '\/nodeOption') === 0) {
|
||||
|
||||
list($sCmd, $sSet) = explode(" ", $sText, 2);
|
||||
|
||||
list(, $sField, $iNodeId) = explode("_", $sCmd, 3);
|
||||
list(, $sField, $iNodeId) = explode("@", $sCmd, 3);
|
||||
|
||||
switch ($sField) {
|
||||
case "config":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user