no message

This commit is contained in:
hellcat 2025-12-30 18:25:24 +08:00
parent 211778643a
commit c490b7dde0

View File

@ -17,6 +17,10 @@ class Base {
public function toJson($sMsg)
{
if (is_string($sMsg)) {
return $sMsg;
}
return json_encode($sMsg, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
}