下一关权限判断

This commit is contained in:
huang 2017-03-24 10:03:10 +08:00
parent a4bee495a2
commit 28f9915d41
1 changed files with 1 additions and 0 deletions

View File

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