no message
This commit is contained in:
parent
32a9271299
commit
219cfb009b
@ -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));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user