no message

This commit is contained in:
hellcat 2025-04-03 19:23:39 +08:00
parent 32a9271299
commit 219cfb009b

View File

@ -261,7 +261,11 @@ final class HookController
list($sCmd, $sCode) = explode(" ", $sText, 2);
$aData = Ducks::where('code', $sCode)->get()->toArray();
$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';
$this->sendMessage(json_encode($aData, JSON_PRETTY_PRINT));