utils_tmp   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 111
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 91
dl 0
loc 111
rs 10
c 0
b 0
f 0
wmc 0
1
# -*- coding: utf8 -*-
2
act_list = [
3
    {
4
        "act_name": "赚积分",
5
        "aid": 1418,
6
        "if_task": True,  # 是否有任务
7
        "referer": "https://hd.oppo.com/act/m/2021/jifenzhuanpan/index.html?us=gerenzhongxin&um=hudongleyuan&uc=yingjifen",
8
        "if_draw": False,  # 是否有抽奖活动,不推荐开启抽奖,建议手动
9
        "extra_draw_cookie": 'app_innerutm={"uc":"yingjifen","um":"hudongleyuan","ut":"direct","us":"gerenzhongxin"};',
10
        # 抽奖必要的额外cookie信息,请勿随意修改,否则可能导致不中奖
11
        "lid": 1307,  # 抽奖参数
12
        "draw_times": 3,  # 控制抽奖次数3
13
        "end_time": "2033-8-18 23:59:59",  # 长期任务
14
        "text": "每次扣取0积分,任务获取次数",
15
    },
16
    {
17
        "act_name": "realme积分大乱斗-8月",
18
        "aid": 1582,
19
        "if_task": True,
20
        "referer": "https://hd.oppo.com/act/m/2021/2021/realmejifendalu/index.html",
21
        "if_draw": False,  # 不推荐开启抽奖,建议手动
22
        "extra_draw_cookie": 'app_innerutm={"uc":"renwuzhongxin","um":"hudongleyuan","ut":"direct","us":"gerenzhongxin"};',
23
        "lid": 1466,
24
        "draw_times": 3,
25
        "end_time": "2022-8-31 23:59:59",
26
        "text": "每次扣取5积分,测试仍然可以中奖",
27
    },
28
    {
29
        "act_name": "realme积分大乱斗-9月",
30
        "aid": 1582,
31
        "if_task": True,
32
        "referer": "https://hd.oppo.com/act/m/2021/2021/realmejifendalu/index.html?&us=realmenewshouye&um=yaofen&ut=right&uc=realmedaluandou",
33
        "if_draw": False,  # 不推荐开启抽奖,建议手动
34
        "extra_draw_cookie": 'app_innerutm={"uc":"renwuzhongxin","um":"hudongleyuan","ut":"direct","us":"gerenzhongxin"};',
35
        "lid": 1554,  # 抽奖接口与8月不一样,测试可以独立抽奖
36
        "draw_times": 3,
37
        "end_time": "2022-8-31 23:59:59",
38
        "text": "每次扣取5积分",
39
    },
40
    {
41
        "act_name": "realme积分大乱斗-9月(2)",
42
        "aid": 1598,
43
        "if_task": True,
44
        "referer": "https://hd.oppo.com/act/m/2021/huantaishangchengjif/index.html?&us=realmeshouye&um=icon&ut=3&uc=realmejifendaluandou",
45
        "if_draw": False,  # 不推荐开启抽奖,建议手动
46
        "extra_draw_cookie": 'app_innerutm={"uc":"realmejifendaluandou","um":"icon","ut":"3","us":"realmeshouye"};',
47
        "lid": 1535,
48
        "draw_times": 3,
49
        "end_time": "2022-8-31 23:59:59",
50
        "text": "每次扣取10积分",
51
    },
52
    {
53
        "act_name": "天天积分翻倍",
54
        "aid": 675,
55
        "if_task": False,  # 该活动没有任务
56
        "referer": "https://hd.oppo.com/act/m/2019/jifenfanbei/index.html?us=qiandao&um=task",
57
        "if_draw": False,  # 不推荐开启抽奖,建议手动
58
        "extra_draw_cookie": 'app_innerutm={"uc":"direct","um":"zuoshangjiao","ut":"direct","us":"shouye"};',
59
        "lid": 1289,
60
        "draw_times": 1,
61
        "end_time": "2033-8-18 23:59:59",  # 长期任务
62
        "text": "每次扣取10积分",
63
    },
64
    {
65
        "act_name": "双十一活动",
66
        "aid": 1768,
67
        "if_task": True,
68
        "referer": "https://hd.oppo.com/act/m/2021/choumiandan/index.html?us=shouye&um=youshangjiao&uc=2021oppowin",
69
        "if_draw": False,  # 不推荐开启抽奖,建议手动
70
        "extra_draw_cookie": 'app_innerutm={"uc":"direct","um":"direct","ut":"direct","us":"direct"};',
71
        "lid": 1586,
72
        "draw_times": 1,
73
        "end_time": "2021-11-13 23:59:59",
74
        "text": "每次扣取5积分",
75
    },
76
    {
77
        "act_name": "OPPO会员日",
78
        "aid": 1825,
79
        "if_task": True,
80
        "referer": "https://hd.oppo.com/act/m/2021/3719/index.html?us=iotchannel&um=icon",
81
        "if_draw": False,  # 不推荐开启抽奖,建议手动
82
        "extra_draw_cookie": 'app_innerutm={"uc":"direct","um":"direct","ut":"direct","us":"direct"};',
83
        "lid": 1606,
84
        "draw_times": 0,
85
        "end_time": "2021-11-16 23:59:59",
86
        "text": "每次扣取5积分",
87
    },
88
    {
89
        "act_name": "一加加油站",
90
        "aid": 1473,
91
        "if_task": True,
92
        "referer": "https://hd.oppo.com/act/m/2021/OnePlusJYStation/index.html?us=onepluschannel&um=active",
93
        "if_draw": False,  # 不推荐开启抽奖,建议手动
94
        "extra_draw_cookie": 'app_innerutm={"uc":"direct","um":"direct","ut":"direct","us":"direct"};',
95
        "lid": 1606,
96
        "draw_times": 0,
97
        "end_time": "2022-11-16 23:59:59",  # 没写结束时间,先设置长期
98
        "text": "每次扣取0积分",
99
    },
100
]
101
102
budget_list = [
103
    {"level": "Basic", "budget": 0},
104
    {"vip": 0, "level": "Free", "budget": 10},
105
    {"vip": 10, "level": "Free", "budget": 10},
106
    {"vip": 11, "level": "Edu", "budget": 50},
107
    {"vip": 21, "level": "Basic", "budget": 200},
108
    {"vip": 31, "level": "Pro", "budget": 500},
109
    {"vip": 41, "level": "Team", "budget": 2000},
110
    {"vip": 51, "level": "Enterprise", "budget": 5000},
111
]
112