소스 검색

附件下载通用方法更新

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