实训直接在命令中编辑的话让实训产生重置

This commit is contained in:
huang 2017-08-25 19:40:05 +08:00
parent 75ddc4b64e
commit 86000572f6
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ class ShixunsController < ApplicationController
@rev = params[:rev]
@content = params[:content]
code_file = g.edit_file(@shixun.gpid, :content => params[:content], :file_path => @path, :branch_name => @rev, :commit_message => "shixun entry")
shixun_modify_status_without_publish(@shixun, 1)
respond_to do |format|
format.js
end