Skip to content

Commit a8ccebc

Browse files
authored
部分场景 JSON 操作出错抛出异常、不转义“/”和 Unicode (#196)
1 parent 618554a commit a8ccebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tool/QueueTool.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class QueueTool extends BaseCommand
2525
*/
2626
public function status(string $queue)
2727
{
28-
fwrite(\STDOUT, json_encode(Queue::getQueue($queue)->status(), \JSON_PRETTY_PRINT) . \PHP_EOL);
28+
fwrite(\STDOUT, json_encode(Queue::getQueue($queue)->status(), \JSON_PRETTY_PRINT | \JSON_THROW_ON_ERROR | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE) . \PHP_EOL);
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)