fix entry bug
This commit is contained in:
@@ -48,6 +48,7 @@ $worker -> onMessage = function(TcpConnection $connection, Request $request) {
|
|||||||
// 先预处理POST内容
|
// 先预处理POST内容
|
||||||
if ($request->header('content-type') === 'application/json') {
|
if ($request->header('content-type') === 'application/json') {
|
||||||
$post = $request -> post();
|
$post = $request -> post();
|
||||||
|
$get = $request -> get();
|
||||||
if (isset($post['action'])) {
|
if (isset($post['action'])) {
|
||||||
$post = json_decode(json_encode($post, JSON_PRESERVE_ZERO_FRACTION));
|
$post = json_decode(json_encode($post, JSON_PRESERVE_ZERO_FRACTION));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user