优化/api/game/playStart接口

This commit is contained in:
2026-03-06 10:37:58 +08:00
parent 768cf5137c
commit cfe026b5eb

View File

@@ -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;