SDKApiPlus.ts
9.8 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
import { SDKApi } from "../../framework/wxsdk/http/SDKApi";
import DataService from "../../framework/wxsdk/service/DataService";
import SDKHttpPlus from "./SDKHttpPlus";
export default class SDKApiPlus extends SDKApi {
//公告
public static notice = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.notice, ...args);
//订阅
public static sendsubscribe = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.sendsubscribe, ...args);
//取消订阅
public static cancelSubscribe = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.cancelSubscribe, ...args);
//邮件
public static mail = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.mail, ...args);
//邮件状态修改
public static mailStatus = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.mailStatus, ...args);
//群二维码
public static QRcode = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.QRcode, ...args);
//兑换码
public static cdkey = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.cdkey, ...args);
//删除存档
public static clearData = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.clearData, ...args);
//商品列表
public static goodsList = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.goodsList, ...args);
//生成订单
public static createOrder = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.createOrder, ...args);
//查询订单
public static queryOrder = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.queryOrder, ...args);
//确认订单
public static confirmOrder = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.confirmOrder, ...args);
//重置GM标识
public static setAup = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.setAup, ...args);
//获取分享图片
public static getShareImg = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getShareImg, ...args);
//获取今日分享
public static getShare = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getShare, ...args);
//获取分享信息
public static getShareInfo = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getShreInfo, ...args);
//领取好友分享
public static receiveShare = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.receiveShare, ...args);
//领取分享额外奖励
public static getProgressReward = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getProgressReward, ...args);
//保存副本
public static saveStory = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.saveStory, ...args);
//我的邀请详情
public static getInviteInfo = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getInviteInfo, ...args);
//领取邀请奖励
public static receiveInvite = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.receiveInvite, ...args);
// 保存用户数据
public static memberSave = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.memberSave, ...args);
// 获取用户数据
public static memberGet = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.memberGet, ...args);
// 重置修改标识
public static memberSesetAup = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.memberSesetAup, ...args);
// 清除用户数据
public static memberClear = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.memberClear, ...args);
//心跳
public static heartbeat = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.memberXT, ...args);
//自定义活动
public static activityCustom = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.activityCustom, ...args);
public static rankAddV2 = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.rankAddV2, ...args);
public static rankListV2 = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.rankListV2, ...args);
//周卡/月卡列表
public static recCardList = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recCardList, ...args);
//领取周卡/月卡奖励
public static recCardReward = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recCardReward, ...args);
//领取基金列表
public static recGrowthList = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recGrowthList, ...args);
//领取基金奖励
public static recGrowthReward = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recGrowthReward, ...args);
//获取无尽礼包数据
public static recEndlessList = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recEndlessList, ...args);
//领取无尽礼包
public static recEndlessReward = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recEndlessReward, ...args);
//获取新手礼包数据
public static getNewbieGiftData = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.getNewbieGiftData, ...args);
//领取新手礼包
public static recNewbieGift = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.recNewbieGift, ...args);
// 活动排行榜相关
public static activityRankConfig = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.activityRankConfig, ...args);
public static activityRankAdd = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.activityRankAdd, ...args);
public static activityRankList = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.activityRankList, ...args);
public static activityRankReward = (...args) => SDKHttpPlus.httpPost(DataService.I.GameApi, HostKeysPlus.activityRankReward, ...args);
//后台
public static getUserHistory = (...args) => SDKHttpPlus.backPost(DataService.I.GMApi, HostKeysPlus.getUserHistory, ...args);
public static saveUserHistory = (...args) => SDKHttpPlus.backPost(DataService.I.GMApi, HostKeysPlus.saveUserHistory, ...args);
}
export const HostKeysPlus = {
sendsubscribe: 'api/subscribe/event', //订阅
cancelSubscribe: 'api/subscribe/event/cancel', //取消订阅
notice: 'mods/notice/list', //公告
mail: 'mods/mail/list', //邮件
mailStatus: '/mods/mail/status/u', //修改邮件状态
QRcode: 'game/merge/system', //群二维码
cdkey: 'game/merge/cdkey', //兑换CDkey
clearData: 'game/merge/clear', //删除存档
goodsList: 'game/merge/goodslist', //商品列表
createOrder: 'game/merge/order/create', //生成订单
queryOrder: 'game/merge/order/query', //查询订单
confirmOrder: 'game/merge/order/give', //确认订单
setAup: 'game/merge/aup', //重置GM标识
getShareImg: 'game/merge/share/getimg', //分享图片
getShare: 'game/merge/share/get', //获取今日分享(自己的)
getShreInfo: 'game/merge/share/info', //获取分享详情(别人的)
receiveShare: 'game/merge/share/receive', //领取分享奖励
getProgressReward: 'game/merge/share/reward/progress', //获取分享奖励
saveStory: 'game/merge/cp/save', //保存副本
getInviteInfo: 'api/member/invite/info', //获取邀请信息
receiveInvite: 'api/member/invite/receive', //领取邀请奖励
memberSave: 'yueliangdao/member/save', //存用户数据
memberGet: 'yueliangdao/member/get', //取用户数据
memberSesetAup: 'yueliangdao/member/reset/aup', //重置修改标识
memberClear: '3ad7e4ab92ae2249/member/clear', //清除用户数据 4.11改
memberXT: 'yueliangdao/member/xt', //心跳
activityCustom: 'mods/activity/custom', //自定义活动
rankListV2: 'mods/rank/permanent/list', //排行榜2023-4-24
rankAddV2: 'mods/rank/permanent/add', //更新排行榜2023-4-24
recCardList: '3ad7e4ab92ae2249/member/ship/info', //周卡/月卡列表
recCardReward: '3ad7e4ab92ae2249/member/ship/draw', //领取周卡/月卡奖励
recGrowthList: 'game/merge/growth/list', //领取基金列表
recGrowthReward: 'game/merge/growth/rec', //领取基金奖励
recEndlessList: '3ad7e4ab92ae2249/egift/show', //获取无尽礼包数据
recEndlessReward: '3ad7e4ab92ae2249/egift/draw', //领取无尽礼包
getNewbieGiftData: '3ad7e4ab92ae2249/novice/list', //获取新手礼包数据
recNewbieGift: '3ad7e4ab92ae2249/novice/draw', //领取新手礼包
activityRankConfig: 'yueliangdao/activities/rank/config', //活动排行榜配置
activityRankAdd: 'yueliangdao/activities/rank/add', //活动排行榜添加分数
activityRankList: 'yueliangdao/activities/rank/top', //活动排行榜
activityRankReward: 'yueliangdao/activities/rank/draw', //活动排行榜奖励
//后台
getUserHistory: 'index/merge/history.html', //获取用户历史存档
saveUserHistory: 'index/merge/setdata.html', //覆盖用户数据
}