forked from Gitlink/forgeplus
fixed 风雷协议配置
This commit is contained in:
parent
3ff361ebb9
commit
72469f9104
|
@ -14,8 +14,12 @@ class ApplySignaturesController < ApplicationController
|
|||
def template_file
|
||||
license = License.find_by_name("PHengLEI")
|
||||
file = license.attachments.take
|
||||
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')
|
||||
# normal_status(-1, "文件不存在") if file.blank?
|
||||
if file.blank?
|
||||
send_file("#{Rails.root.to_s}/public/PHengLEI-License.docx", filename: "PHengLEI软件开源协议.docx",stream:false, type: 'application/octet-stream')
|
||||
else
|
||||
send_file(absolute_path(local_path(file)), filename: file.title,stream:false, type: file.content_type.presence || 'application/octet-stream')
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue