|
@@ -115,6 +115,16 @@ class BaseConfig(object):
|
|
|
'rule2': {'cal_score_func': 2, 'return_count': 100, 'platform_return_rate': 0.001, 'view_type': 'preview'},
|
|
|
}
|
|
|
|
|
|
+ REGION_CODE = {
|
|
|
+ '河北省': '130000', '山西省': '140000', '辽宁省': '210000', '吉林省': '220000', '黑龙江省': '230000', '江苏省': '320000',
|
|
|
+ '浙江省': '330000', '安徽省': '340000', '福建省': '350000', '江西省': '360000', '山东省': '370000', '河南省': '410000',
|
|
|
+ '湖北省': '420000', '湖南省': '430000', '广东省': '440000', '海南省': '460000', '四川省': '510000', '贵州省': '520000',
|
|
|
+ '云南省': '530000', '陕西省': '610000', '甘肃省': '620000', '青海省': '630000', '台湾省': '710000', '北京': '110000',
|
|
|
+ '天津': '120000', '内蒙古': '150000', '上海': '310000', '广西': '450000', '重庆': '500000', '西藏': '540000',
|
|
|
+ '宁夏': '640000', '新疆': '650000', '香港': '810000', '澳门': '820000',
|
|
|
+ 'None': '-1'
|
|
|
+ }
|
|
|
+
|
|
|
# 地域分组小时级规则更新使用数据
|
|
|
PROJECT_REGION = 'loghubods'
|
|
|
TABLE_REGION = 'video_each_hour_update_province'
|
|
@@ -298,6 +308,13 @@ class BaseConfig(object):
|
|
|
# 特殊mid对应指定视频列表更新结果存放 redis key 前缀,完整格式:'com.weiqu.video.special.videos.item.{date}'
|
|
|
KEY_NAME_PREFIX_SPECIAL_VIDEOS = 'com.weiqu.video.special.videos.item.'
|
|
|
|
|
|
+ # 限流视频集合存放 redis key前缀,完整格式:'com.weiqu.video.limit.set.{date}'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEO_SET = 'com.weiqu.video.limit.set.'
|
|
|
+ # 限流视频最大分发数记录 redis key,完整格式:'com.weiqu.video.limit.item'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEOS = 'com.weiqu.video.limit.item'
|
|
|
+ # 限流视频分发数记录 redis key前缀,完整格式:'com.weiqu.video.limit.distribute.count.{videoId}'
|
|
|
+ KEY_NAME_PREFIX_LIMIT_VIDEO_DISTRIBUTE_COUNT = 'com.weiqu.video.limit.distribute.count.'
|
|
|
+
|
|
|
|
|
|
class DevelopmentConfig(BaseConfig):
|
|
|
"""开发环境配置"""
|
|
@@ -370,6 +387,8 @@ class DevelopmentConfig(BaseConfig):
|
|
|
BOTTOM_JSON_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/video/distribute/structure/video/list'
|
|
|
# 通知后端更新兜底视频接口地址
|
|
|
NOTIFY_BACKEND_updateFallBackVideoList_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/recommend/updateFallBackVideoList'
|
|
|
+ # 获取限流视频接口地址
|
|
|
+ GET_VIDEO_LIMIT_LIST_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/recommend/getVideoLimitList'
|
|
|
|
|
|
# logs 上传oss 目标Bucket指定目录
|
|
|
OSS_FOLDER_LOGS = 'rov-offline/dev/logs/'
|
|
@@ -448,6 +467,8 @@ class TestConfig(BaseConfig):
|
|
|
BOTTOM_JSON_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/video/distribute/structure/video/list'
|
|
|
# 通知后端更新兜底视频接口地址
|
|
|
NOTIFY_BACKEND_updateFallBackVideoList_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/recommend/updateFallBackVideoList'
|
|
|
+ # 获取限流视频接口地址
|
|
|
+ GET_VIDEO_LIMIT_LIST_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/recommend/getVideoLimitList'
|
|
|
|
|
|
# logs 上传oss 目标Bucket指定目录
|
|
|
OSS_FOLDER_LOGS = 'rov-offline/test/logs/'
|
|
@@ -526,6 +547,8 @@ class PreProductionConfig(BaseConfig):
|
|
|
BOTTOM_JSON_URL = 'http://speedpre.wx.com/longvideoapi/openapi/video/distribute/structure/video/list'
|
|
|
# 通知后端更新兜底视频接口地址
|
|
|
NOTIFY_BACKEND_updateFallBackVideoList_URL = 'http://videopre-internal.piaoquantv.com/longvideoapi/openapi/recommend/updateFallBackVideoList'
|
|
|
+ # 获取限流视频接口地址
|
|
|
+ GET_VIDEO_LIMIT_LIST_URL = 'http://prespeed-internal.piaoquantv.com/longvideoapi/openapi/recommend/getVideoLimitList'
|
|
|
|
|
|
# logs 上传oss 目标Bucket指定目录
|
|
|
OSS_FOLDER_LOGS = 'rov-offline/pre/logs/'
|
|
@@ -604,6 +627,8 @@ class ProductionConfig(BaseConfig):
|
|
|
BOTTOM_JSON_URL = 'http://recommend-common-internal.piaoquantv.com/longvideoapi/openapi/video/distribute/structure/video/list'
|
|
|
# 通知后端更新兜底视频接口地址
|
|
|
NOTIFY_BACKEND_updateFallBackVideoList_URL = 'http://recommend-common-internal.piaoquantv.com/longvideoapi/openapi/recommend/updateFallBackVideoList'
|
|
|
+ # 获取限流视频接口地址
|
|
|
+ GET_VIDEO_LIMIT_LIST_URL = 'http://recommend-common-internal.piaoquantv.com/longvideoapi/openapi/recommend/getVideoLimitList'
|
|
|
|
|
|
# logs 上传oss 目标Bucket指定目录
|
|
|
OSS_FOLDER_LOGS = 'rov-offline/pro/logs/'
|