From 59a8974672fff34a7d3caa4756ec9016d01622e5 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 4 Apr 2021 02:56:38 +0800 Subject: [PATCH] modify --- HttpServer/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/Request.php b/HttpServer/Http/Request.php index cac3c95e..fa0d1c3e 100644 --- a/HttpServer/Http/Request.php +++ b/HttpServer/Http/Request.php @@ -560,7 +560,7 @@ class Request extends HttpService throw new Exception('Protocol format error.'); } - if (!isset($data['cmd'])) { + if (!isset($data['cmd']) || empty(!isset($data['cmd']))) { throw new Exception('Unknown system cmd.'); }