|
@@ -802,38 +802,38 @@ def get_recommend_params(recommend_type, ab_exp_info, ab_info_data, page_type=0)
|
|
|
"""
|
|
|
|
|
|
# APP实验组
|
|
|
- if ab_info_data:
|
|
|
- ab_info_app = {}
|
|
|
- for page_code, item in json.loads(ab_info_data).items():
|
|
|
- if not item:
|
|
|
- continue
|
|
|
- ab_info_code = item.get('eventId', None)
|
|
|
- if ab_info_code:
|
|
|
- ab_info_app[page_code] = ab_info_code
|
|
|
- print(f"======{ab_info_app}")
|
|
|
-
|
|
|
- # 首页推荐
|
|
|
- if recommend_type == 0:
|
|
|
- if config_.APP_AB_CODE['10003'].get('region_rule_rank6_appType_13_data2') == ab_info_app.get('10003', None):
|
|
|
- ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank6_appType_13_data2')
|
|
|
- expire_time = 3600
|
|
|
- rule_key = 'rule6'
|
|
|
- data_key = 'data7'
|
|
|
- no_op_flag = True
|
|
|
- else:
|
|
|
- ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank4')
|
|
|
- expire_time = 3600
|
|
|
- rule_key = 'rule3'
|
|
|
- data_key = 'data1'
|
|
|
- no_op_flag = True
|
|
|
- # 相关推荐
|
|
|
- elif recommend_type == 1:
|
|
|
- if config_.APP_AB_CODE['10037'] == ab_info_app.get('10037', None):
|
|
|
- ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank4')
|
|
|
- expire_time = 3600
|
|
|
- rule_key = 'rule3'
|
|
|
- data_key = 'data1'
|
|
|
- no_op_flag = True
|
|
|
+ # if ab_info_data:
|
|
|
+ # ab_info_app = {}
|
|
|
+ # for page_code, item in json.loads(ab_info_data).items():
|
|
|
+ # if not item:
|
|
|
+ # continue
|
|
|
+ # ab_info_code = item.get('eventId', None)
|
|
|
+ # if ab_info_code:
|
|
|
+ # ab_info_app[page_code] = ab_info_code
|
|
|
+ # print(f"======{ab_info_app}")
|
|
|
+ #
|
|
|
+ # # 首页推荐
|
|
|
+ # if recommend_type == 0:
|
|
|
+ # if config_.APP_AB_CODE['10003'].get('region_rule_rank6_appType_13_data2') == ab_info_app.get('10003', None):
|
|
|
+ # ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank6_appType_13_data2')
|
|
|
+ # expire_time = 3600
|
|
|
+ # rule_key = 'rule6'
|
|
|
+ # data_key = 'data7'
|
|
|
+ # no_op_flag = True
|
|
|
+ # else:
|
|
|
+ # ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank4')
|
|
|
+ # expire_time = 3600
|
|
|
+ # rule_key = 'rule3'
|
|
|
+ # data_key = 'data1'
|
|
|
+ # no_op_flag = True
|
|
|
+ # # 相关推荐
|
|
|
+ # elif recommend_type == 1:
|
|
|
+ # if config_.APP_AB_CODE['10037'] == ab_info_app.get('10037', None):
|
|
|
+ # ab_code = config_.AB_CODE['region_rank_by_h'].get('region_rule_rank4')
|
|
|
+ # expire_time = 3600
|
|
|
+ # rule_key = 'rule3'
|
|
|
+ # data_key = 'data1'
|
|
|
+ # no_op_flag = True
|
|
|
|
|
|
return top_K, flow_pool_P, ab_code, rule_key, data_key, expire_time, no_op_flag, old_video_index
|
|
|
|