Explorar o código

附件下载通用方法更新

maxiaoshan %!s(int64=2) %!d(string=hai) anos
pai
achega
5b83943d50
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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