下一关权限判断
This commit is contained in:
parent
a4bee495a2
commit
28f9915d41
|
@ -107,6 +107,7 @@ class GamesController < ApplicationController
|
|||
|
||||
# 自动推送下一个任务
|
||||
def next_step
|
||||
render_403 if @game.status != 2
|
||||
next_game = @game.next_game
|
||||
next_game.update_attribute(:status, 0) if next_game.status == 3
|
||||
|
||||
|
|
Loading…
Reference in New Issue