fix entry bug

This commit is contained in:
Yu Sun
2022-08-14 19:39:07 +08:00
parent 8674b502d5
commit eec9e06137

View File

@@ -48,6 +48,7 @@ $worker -> onMessage = function(TcpConnection $connection, Request $request) {
// 先预处理POST内容
if ($request->header('content-type') === 'application/json') {
$post = $request -> post();
$get = $request -> get();
if (isset($post['action'])) {
$post = json_decode(json_encode($post, JSON_PRESERVE_ZERO_FRACTION));
}