|
@@ -3,8 +3,8 @@
|
|
* @Version: 1.0
|
|
* @Version: 1.0
|
|
* @Autor: lishengyin
|
|
* @Autor: lishengyin
|
|
* @Date: 2022-03-22 14:00:46
|
|
* @Date: 2022-03-22 14:00:46
|
|
- * @LastEditors: Your Name lishengyin@sz-sunwin.com
|
|
|
|
- * @LastEditTime: 2022-05-15 22:07:45
|
|
|
|
|
|
+ * @LastEditors: lishengyin
|
|
|
|
+ * @LastEditTime: 2022-05-16 09:22:22
|
|
*/
|
|
*/
|
|
#include "InfineFilter.h"
|
|
#include "InfineFilter.h"
|
|
|
|
|
|
@@ -36,6 +36,9 @@ namespace cnstream{
|
|
if(paramSet.find("saveFilterResult") != paramSet.end()){
|
|
if(paramSet.find("saveFilterResult") != paramSet.end()){
|
|
this->saveFilterResult = paramSet["saveFilterResult"] == "true" ? true : false;
|
|
this->saveFilterResult = paramSet["saveFilterResult"] == "true" ? true : false;
|
|
}
|
|
}
|
|
|
|
+ if(paramSet.find("Night_Filter") != paramSet.end()){
|
|
|
|
+ this->Night_Filter = paramSet["Night_Filter"] == "true" ? true : false;
|
|
|
|
+ }
|
|
if(paramSet.find("lock_period") != paramSet.end()){
|
|
if(paramSet.find("lock_period") != paramSet.end()){
|
|
std::string json = paramSet["lock_period"];
|
|
std::string json = paramSet["lock_period"];
|
|
rapidjson::Document doc;
|
|
rapidjson::Document doc;
|
|
@@ -85,7 +88,8 @@ namespace cnstream{
|
|
iter++;
|
|
iter++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ if(!this->Night_Filter) return 0;
|
|
if(!getNight()) return 0;
|
|
if(!getNight()) return 0;
|
|
|
|
|
|
// 过滤星星、月亮、飞机
|
|
// 过滤星星、月亮、飞机
|