From b54a34329aa907f75d68bf86a3f99574e3d85bba Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期五, 16 八月 2019 17:58:38 +0800 Subject: [PATCH] --- --- algorithm/face/face.go | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/algorithm/face/face.go b/algorithm/face/face.go index f1059aa..4f44993 100644 --- a/algorithm/face/face.go +++ b/algorithm/face/face.go @@ -1,4 +1,4 @@ -package face +package main import ( "basic.com/pubsub/protomsg.git" @@ -7,9 +7,9 @@ "ruleprocess/structure" "strconv" ) - -func Entrance () { - +// 浜鸿劯绠楁硶 +func Entrance(rule *protomsg.Rule, am *structure.AreaMap) structure.LittleRuleResult { + return filterRule(rule,am) } // 杩囨护瑙勫垯鍏堢瓫閫夊嚭绗﹀悎鏉′欢鐨勭洰鏍囨暟閲� @@ -18,7 +18,7 @@ //logger.Info("瑙勫垯鐨勭畻娉昳d鍜屽尯鍩熺殑绠楁硶id锛�", rule.SdkId, "===", am.sdkId) if rule.PolygonId == am.AreaId { // 绠楁硶鍜屽尯鍩熼兘寰楀鐨勪笂 - if rule.SdkId == "812b674b-2375-4589-919a-5c1c3278a972" && rule.SdkArgAlias != "time_rule"{ + if rule.SdkId == "812b674b-2375-4589-919a-5c1c3278a972" && rule.SdkArgAlias != "time_rule"{ // 浜鸿劯姣斿 //logger.Debug("褰撳墠灏忚鍒欐槸锛�",rule) flag := "false" // 鎶婃病鏈夌浉浼艰�呯殑浜鸿劯浠巉ilterData涓垹闄� -- Gitblit v1.8.0