|
|
@ -26,13 +26,13 @@ elsif @type =="qrcode"
|
|
|
|
json.qrcode_str @qrcode_str
|
|
|
|
json.qrcode_str @qrcode_str
|
|
|
|
elsif @type == "mp3" || @type == "mp4"
|
|
|
|
elsif @type == "mp3" || @type == "mp4"
|
|
|
|
if @type == "mp4"
|
|
|
|
if @type == "mp4"
|
|
|
|
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171/123.mp4"}]
|
|
|
|
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171"}]
|
|
|
|
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172/456.mp4"}]
|
|
|
|
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172"}]
|
|
|
|
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173/789.mp4"}]
|
|
|
|
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173"}]
|
|
|
|
else
|
|
|
|
else
|
|
|
|
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174/58099.mp3"}]
|
|
|
|
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174"}]
|
|
|
|
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
|
|
|
|
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175"}]
|
|
|
|
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
|
|
|
|
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175"}]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# json.orignal_file do
|
|
|
|
# json.orignal_file do
|
|
|
|
# json.array! @orignal_picture do |file|
|
|
|
|
# json.array! @orignal_picture do |file|
|
|
|
|