|
@@ -29,12 +29,41 @@ class BaseConfig(object):
|
|
|
|
|
|
MODEL_FILENAME = 'model.pickle'
|
|
|
|
|
|
-
|
|
|
+
|
|
|
RECALL_KEY_NAME_PREFIX = 'com.weiqu.video.recall.hot.item.score.'
|
|
|
|
|
|
FLOWPOOL_KEY_NAME = 'com.weiqu.video.flowpool.hot.item.score'
|
|
|
|
|
|
|
|
|
+class DevelopmentConfig(BaseConfig):
|
|
|
+ """开发环境配置"""
|
|
|
+
|
|
|
+ REDIS_INFO = {
|
|
|
+ 'host': 'r-bp1ps6my7lzg8rdhwx682.redis.rds.aliyuncs.com',
|
|
|
+ 'port': 6379,
|
|
|
+ 'password': 'Wqsd@2019',
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ HOLOGRES_INFO = {
|
|
|
+ 'host': 'hgprecn-cn-7pp28y18c00c-cn-hangzhou.hologres.aliyuncs.com',
|
|
|
+ 'port': 80,
|
|
|
+ 'dbname': 'dssm',
|
|
|
+ 'user': 'LTAI5tMPqPy9yboQAf1mBCCN',
|
|
|
+ 'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ VIDEO_STATUS = 'longvideo_test.dwd_mdm_item_video_stat'
|
|
|
+
|
|
|
+
|
|
|
+ GET_VIDEOS_FROM_POOL_URL = 'http://testapi-internal.piaoquantv.com/flowpool/video/getAllVideo'
|
|
|
+
|
|
|
+ GET_REMAIN_VIEW_COUNT_URL = 'http://testapi-internal.piaoquantv.com/flowpool/video/remainViewCount'
|
|
|
+
|
|
|
+ NOTIFY_BACKEND_UPDATE_ROV_SCORE_URL = 'http://speedtest.wx.com/longvideoapi/openapi/recommend/updateRovScore'
|
|
|
+
|
|
|
+
|
|
|
class TestConfig(BaseConfig):
|
|
|
"""测试环境配置"""
|
|
|
|
|
@@ -53,6 +82,9 @@ class TestConfig(BaseConfig):
|
|
|
'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ VIDEO_STATUS = 'longvideo_test.dwd_mdm_item_video_stat'
|
|
|
+
|
|
|
|
|
|
GET_VIDEOS_FROM_POOL_URL = 'http://testapi-internal.piaoquantv.com/flowpool/video/getAllVideo'
|
|
|
|
|
@@ -79,6 +111,9 @@ class PreProductionConfig(BaseConfig):
|
|
|
'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ VIDEO_STATUS = 'longvideo.dwd_mdm_item_video_stat'
|
|
|
+
|
|
|
|
|
|
GET_VIDEOS_FROM_POOL_URL = 'http://preapi-internal.piaoquantv.com/flowpool/video/getAllVideo'
|
|
|
|
|
@@ -105,6 +140,9 @@ class ProductionConfig(BaseConfig):
|
|
|
'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ VIDEO_STATUS = 'longvideo.dwd_mdm_item_video_stat'
|
|
|
+
|
|
|
|
|
|
GET_VIDEOS_FROM_POOL_URL = 'http://api-internal.piaoquantv.com/flowpool/video/getAllVideo'
|
|
|
|
|
@@ -114,6 +152,7 @@ class ProductionConfig(BaseConfig):
|
|
|
|
|
|
|
|
|
def set_config():
|
|
|
- return TestConfig()
|
|
|
+ return DevelopmentConfig()
|
|
|
+
|
|
|
|
|
|
|