wangkaiyue 5 years ago
parent
commit
86465f6e92

+ 11 - 6
jyinfomatch/master/src/res/luascript/广州柒柒数码科技公司.lua

@@ -4,7 +4,6 @@ local com=require "res.util.comm"
 appid="jyFyhXQgUDCQFdTkNNKxVb"
 --匹配词
 keys={"装修","装饰","装潢","桌","椅","家具","会议台","沙发","屏风","文件柜","病床","护理床","衣柜","书柜","铁柜","橱柜","宿舍床","木床","学生床","储物柜","公寓床","床垫","床铺","上下床","家私","办公台"}
-notkeys={"桌面"}
 --脚本主入口方法
 function filterValidate(data)
 	--匹配标题
@@ -17,11 +16,17 @@ function filterValidate(data)
 	if not ok_a then
 		return nil,0
 	end
-	local e_ok,e_keys = contain(title,notkeys)
-	if e_ok then
-		data["notkey"] = e_keys
-		data["excludetype"] = "title"
-		return data,-1
+	local array = com.split(m_a,",")
+	for k,v in pairs(array) do
+		if v=="桌" then
+			local ok_b,m_b = contain(title,{"桌面"})
+			if ok_b then
+				data["notkey"] = m_b
+				data["excludetype"] = "title"
+				return data,-1
+			end
+			break
+		end
 	end
 	data["matchkey"] = m_a
 	data["matchtype"] = "title"