优化/api/game/playStart接口
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user