ソースを参照

附件下载通用方法更新

maxiaoshan 2 年 前
コミット
5b83943d50
1 ファイル変更1 行追加2 行削除
  1. 1 2
      src/res/util/comm.lua

+ 1 - 2
src/res/util/comm.lua

@@ -550,8 +550,7 @@ function common.getFilesLinkByTag(href,tags,content,withend)
 			end
 		end
 		--有文件类型且在filetype中,才下载附件
-		--if statehref~=nil and item["title"]~="" then
-		if item["title"]~="" then
+		if statehref~=nil and item["title"]~="" then
 			local has = false
 			for _,tmphref in pairs(ahref) do
 				if tmphref == item["href"] then