This commit is contained in:
viletyy 2020-12-28 12:57:58 +08:00
parent 47cc70f2c5
commit 749cd058c4
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ class ApplySignaturesController < ApplicationController
include ApplicationHelper include ApplicationHelper
def template_file def template_file
license = License.find_by_name("PHengLET") license = License.find_by_name("PHengLEI")
file = license.attachments.take file = license.attachments.take
normal_status(-1, "文件不存在") if file.blank? normal_status(-1, "文件不存在") if file.blank?
send_file(absolute_path(local_path(file)), filename: file.title,stream:false, type: file.content_type.presence || 'application/octet-stream') send_file(absolute_path(local_path(file)), filename: file.title,stream:false, type: file.content_type.presence || 'application/octet-stream')