瀏覽代碼

附件下载通用方法更新

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