From cfe026b5ebab3cf16cea0825143d5094e37e19e2 Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Fri, 6 Mar 2026 10:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96/api/game/playStart=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/api/controller/GameController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/api/controller/GameController.php b/server/app/api/controller/GameController.php index f3d6f37..edadbcf 100644 --- a/server/app/api/controller/GameController.php +++ b/server/app/api/controller/GameController.php @@ -71,7 +71,7 @@ class GameController extends OpenController { $userId = (int) ($request->player_id ?? 0); $rediction = $request->post('rediction'); - if ($rediction === '' || $rediction === null) { + if (empty($rediction)) { return $this->fail('请传递 rediction 参数', ReturnCode::PARAMS_ERROR); } $direction = (int) $rediction;