打开文件的收为空处理

This commit is contained in:
huang 2017-10-17 09:17:21 +08:00
parent dcd02eaf7c
commit d3858bb30b
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class ShixunsController < ApplicationController
@path = params[:path]
@rev = params[:rev]
file_content = g.files(@shixun.gpid, @path, @rev).content
@content = tran_base64_decode64(file_content)
@content = tran_base64_decode64(file_content) unless file_content.blank?
respond_to do |format|
format.js