baichongyang 3 vuotta sitten
vanhempi
commit
dc3c0889bb
1 muutettua tiedostoa jossa 21 lisäystä ja 2 poistoa
  1. 21 2
      conf/config.json.production

+ 21 - 2
conf/config.json.production

@@ -64,6 +64,25 @@
             }
         ]
     },
+        {
+            "Name": "ItemDurationFilter",
+            "FilterType": "ItemStateFilter",
+            "ItemStateDaoConf":{
+                "AdapterType": "hologres",
+                "HologresName": "wx-holo",
+                "HologresTableName": "dim_video",
+                "ItemFieldName" : "\"videoid\"",
+                "SelectFields" :"total_time"
+            },
+            "FilterParams" :[
+                {
+                    "Name" : "total_time",
+                    "Type" : "int",
+                    "Operator" : "greater",
+                    "Value" : 120
+                }
+            ]
+        },
     {
         "Name": "PriorityAdjustCountFilter",
         "FilterType": "PriorityAdjustCountFilter",
@@ -172,15 +191,15 @@
 	  "default": [
          "ItemRankScore",
          "VideoMixSort",
-				 "UniqueUploaderSort"
+		  "UniqueUploaderSort"
 	  ]
 	},
 	"FilterNames": {
 	  "default": [
 		"UniqueFilter",
         "UserExposureFilter",
-				"DrationFilter",
         "ItemStateFilter",
+        "ItemDurationFilter",
         "PriorityAdjustCountFilter"
 	  ]
 	},