game.js
862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import api from "~/utils/request/request";
module.exports = {
//获取任务是否结束
taskCheck(data) {
return api.post(
{
method: "marketing.api.game.task.open.check",
projectName: 'marketing',
...data,
},
true
);
},
//用户行为埋点上报
taskInsert(data) {
return api.post(
{
method: "marketing.api.game.task.customer.behavior.insert",
...data,
},
true
);
},
//获取任务详情
taskDetail(data) {
return api.post(
{
method: "marketing.api.game.task.detail",
...data,
},
true
);
},
//发放奖励
taskRewards(data) {
return api.post(
{
method: "marketing.api.game.task.get.rewards",
...data,
},
true
);
},
}