dev_unstable
cxt 6 years ago
commit 3685ff1c6a

@ -258,7 +258,7 @@ module ApplicationHelper
end end
def download_url attachment def download_url attachment
attachment_path(attachment).gsub("/api","") attachment_path(attachment)
end end
# 耗时:天、小时、分、秒 # 耗时:天、小时、分、秒

@ -21,7 +21,7 @@ if @type == "image"
elsif @type == "html" elsif @type == "html"
json.iframe_src File.read("#{@user_path}/#{@user_picture[0]}")&.html_safe json.iframe_src File.read("#{@user_path}/#{@user_picture[0]}")&.html_safe
elsif @type == "txt" elsif @type == "txt"
json.contents @contents.html_safe json.contents @contents.to_s
elsif @type =="qrcode" elsif @type =="qrcode"
json.qrcode_str @qrcode_str json.qrcode_str @qrcode_str
elsif @type == "mp3" || @type == "mp4" elsif @type == "mp3" || @type == "mp4"

Loading…
Cancel
Save