|
@@ -1,3 +1,9 @@
|
|
|
|
|
+/**
|
|
|
|
|
+ * 请任何自动化工具每次更新本文档,要再下面的版本号自动加1,并更新日期
|
|
|
|
|
+ *
|
|
|
|
|
+ * 版本号:1
|
|
|
|
|
+ * 日期:2025-12-4 16:14:00
|
|
|
|
|
+*/
|
|
|
(function (window) {
|
|
(function (window) {
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
@@ -60,6 +66,7 @@
|
|
|
'CardDetailQuery': {
|
|
'CardDetailQuery': {
|
|
|
mcId: 101,
|
|
mcId: 101,
|
|
|
mcName: '[Mock]线上马拉松',
|
|
mcName: '[Mock]线上马拉松',
|
|
|
|
|
+ nickName: '[Mock]用户昵称', // Added as per user request
|
|
|
mcType: 1,
|
|
mcType: 1,
|
|
|
beginSecond: Date.now() / 1000 - 86400 * 2,
|
|
beginSecond: Date.now() / 1000 - 86400 * 2,
|
|
|
endSecond: Date.now() / 1000 + 86400 * 5,
|
|
endSecond: Date.now() / 1000 + 86400 * 5,
|
|
@@ -68,21 +75,40 @@
|
|
|
coiName: '个人组',
|
|
coiName: '个人组',
|
|
|
ocaId: 201 // Mocked ocaId
|
|
ocaId: 201 // Mocked ocaId
|
|
|
},
|
|
},
|
|
|
- 'MatchRsDetailQuery': [
|
|
|
|
|
- { id: 1, name: '[Mock]活动1', status: 1 },
|
|
|
|
|
- { id: 2, name: '[Mock]活动2', status: 0 }
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ 'MatchRsDetailQuery': {
|
|
|
|
|
+ id: 1,
|
|
|
|
|
+ name: '[Mock]活动1',
|
|
|
|
|
+ status: 1,
|
|
|
|
|
+ totalSysPoint: 100,
|
|
|
|
|
+ mcType: 1,
|
|
|
|
|
+ mcId: 101,
|
|
|
|
|
+ mcName: '[Mock]线上马拉松',
|
|
|
|
|
+ beginSecond: Date.now() / 1000 - 86400 * 2,
|
|
|
|
|
+ endSecond: Date.now() / 1000 + 86400 * 5,
|
|
|
|
|
+ nickName: '[Mock]用户昵称',
|
|
|
|
|
+ totalNum: 10,
|
|
|
|
|
+ totalDistanct: 5000,
|
|
|
|
|
+ totalDistanctRankNum: 5,
|
|
|
|
|
+ totalCp: 20,
|
|
|
|
|
+ totalCpRankNum: 3,
|
|
|
|
|
+ totalSysPointRankNum: 10,
|
|
|
|
|
+ fastPace: 300,
|
|
|
|
|
+ fastPaceRankNum: 8
|
|
|
|
|
+ },
|
|
|
'CardRankDetailQuery': {
|
|
'CardRankDetailQuery': {
|
|
|
totalRankRs: [
|
|
totalRankRs: [
|
|
|
- { nickName: 'Mock张三', score: 10000, headUrl: 'https://picsum.photos/40/40?random=1', rankNum: 1 },
|
|
|
|
|
- { nickName: 'Mock李四', score: 9500, headUrl: 'https://picsum.photos/40/40?random=2', rankNum: 2 },
|
|
|
|
|
- { nickName: 'Mock王五', score: 8800, headUrl: 'https://picsum.photos/40/40?random=3', rankNum: 3 },
|
|
|
|
|
- { nickName: 'Mock赵六', score: 7200, headUrl: 'https://picsum.photos/40/40?random=4', rankNum: 4 },
|
|
|
|
|
- { nickName: 'Mock小明', score: 6500, headUrl: 'https://picsum.photos/40/40?random=5', rankNum: 5 }
|
|
|
|
|
|
|
+ { userName: 'Mock张三', score: 10000, headUrl: 'https://picsum.photos/40/40?random=1', rankNum: 1, isSelf: 0, inRankNum: 1, isInGame: 0, additionalName: '计算机学院', isDispAdditionalName: 1, inGameUserNum: 0, isDispInGameUserNum: 0, isTodayFinishGame: 0 },
|
|
|
|
|
+ { userName: 'Mock李四', score: 9500, headUrl: 'https://picsum.photos/40/40?random=2', rankNum: 2, isSelf: 0, inRankNum: 2, isInGame: 0, additionalName: '土木建筑', isDispAdditionalName: 1, inGameUserNum: 0, isDispInGameUserNum: 0, isTodayFinishGame: 0 },
|
|
|
|
|
+ { userName: 'Mock王五', score: 8800, headUrl: 'https://picsum.photos/40/40?random=3', rankNum: 3, isSelf: 0, inRankNum: 3, isInGame: 0, additionalName: '艺术设计', isDispAdditionalName: 1, inGameUserNum: 0, isDispInGameUserNum: 0, isTodayFinishGame: 0 },
|
|
|
|
|
+ { userName: 'Mock赵六', score: 7200, headUrl: 'https://picsum.photos/40/40?random=4', rankNum: 4, isSelf: 0, inRankNum: 4, isInGame: 0, additionalName: '交通运输', isDispAdditionalName: 1, inGameUserNum: 0, isDispInGameUserNum: 0, isTodayFinishGame: 0 },
|
|
|
|
|
+ { userName: 'Mock小明', score: 6500, headUrl: 'https://picsum.photos/40/40?random=5', rankNum: 5, isSelf: 1, inRankNum: 5, isInGame: 0, additionalName: '信息工程', isDispAdditionalName: 1, inGameUserNum: 0, isDispInGameUserNum: 0, isTodayFinishGame: 0 }
|
|
|
],
|
|
],
|
|
|
teamRankRs: [],
|
|
teamRankRs: [],
|
|
|
inTeamRs: [],
|
|
inTeamRs: [],
|
|
|
- otherRs: []
|
|
|
|
|
|
|
+ otherRs: [],
|
|
|
|
|
+ regionPaceRs: null,
|
|
|
|
|
+ regionTodayPaceRs: null,
|
|
|
|
|
+ regionSpeedRs: null
|
|
|
},
|
|
},
|
|
|
'UserCurrentRankNumQuery': { rankNum: 5 },
|
|
'UserCurrentRankNumQuery': { rankNum: 5 },
|
|
|
'UserJoinCardQuery': { isJoin: false }, // 默认未报名
|
|
'UserJoinCardQuery': { isJoin: false }, // 默认未报名
|
|
@@ -159,7 +185,7 @@
|
|
|
'MapListQuery': [
|
|
'MapListQuery': [
|
|
|
{ mapId: 1, mapName: '[Mock]公园地图', latitude: 36.6, longitude: 117.0, activityList: [] }
|
|
{ mapId: 1, mapName: '[Mock]公园地图', latitude: 36.6, longitude: 117.0, activityList: [] }
|
|
|
],
|
|
],
|
|
|
- 'CompStatisticQuery': { totalDistance: 123.45, totalPeople: 1000 },
|
|
|
|
|
|
|
+ 'CompStatisticQuery': { totalDistance: 5024, totalPeople: 1000, totalAnswerNum: 1500, totalCp: 8900 },
|
|
|
'WarnMessageQuery': [
|
|
'WarnMessageQuery': [
|
|
|
{ warnType: 1, warnTitle: '[Mock]黄牌警告', warnMessage: '您的成绩异常', iconUrl: 'https://picsum.photos/50/50?random=10' }
|
|
{ warnType: 1, warnTitle: '[Mock]黄牌警告', warnMessage: '您的成绩异常', iconUrl: 'https://picsum.photos/50/50?random=10' }
|
|
|
],
|
|
],
|
|
@@ -192,9 +218,9 @@
|
|
|
{ orderNum: 2, isComplete: 0, showName: '未完2', relationType: 1, ocaId: 11, longitude: 117.2, latitude: 36.7, popupImg: 'https://picsum.photos/100/100?random=20' }
|
|
{ orderNum: 2, isComplete: 0, showName: '未完2', relationType: 1, ocaId: 11, longitude: 117.2, latitude: 36.7, popupImg: 'https://picsum.photos/100/100?random=20' }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
- 'CardUriQuery': {}, // 暂无 Mock 结构
|
|
|
|
|
- 'MatchFinishInfoQuery': {}, // 暂无 Mock 结构
|
|
|
|
|
- 'RedisRebuild': {} // 暂无 Mock 结构
|
|
|
|
|
|
|
+ 'CardUrlQuery': { url: 'https://mock-uri.colormaprun.com/card/nanning1/index.html'}, // 暂无 Mock 结构
|
|
|
|
|
+ 'MatchFininshInfoQuery': {}, // 暂无 Mock 结构
|
|
|
|
|
+ 'RedisRebulid': {} // 暂无 Mock 结构
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
var API = {
|
|
var API = {
|
|
@@ -214,10 +240,12 @@
|
|
|
Config.token = token;
|
|
Config.token = token;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- request: function(endpoint, data) {
|
|
|
|
|
|
|
+ request: function(endpoint, data, method) {
|
|
|
|
|
+ var reqMethod = (method || 'POST').toUpperCase();
|
|
|
|
|
+
|
|
|
if (Config.useMock) {
|
|
if (Config.useMock) {
|
|
|
return new Promise(function(resolve, reject) {
|
|
return new Promise(function(resolve, reject) {
|
|
|
- Logger.log('[API-Mock] Request:', endpoint, data);
|
|
|
|
|
|
|
+ Logger.log('[API-Mock] Request (' + reqMethod + '):', endpoint, data);
|
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
|
var mockData = MOCK_DB[endpoint];
|
|
var mockData = MOCK_DB[endpoint];
|
|
|
if (endpoint === 'OnlineMcSignUp') MOCK_DB['UserJoinCardQuery'].isJoin = true;
|
|
if (endpoint === 'OnlineMcSignUp') MOCK_DB['UserJoinCardQuery'].isJoin = true;
|
|
@@ -230,30 +258,41 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var url = Config.baseUrl + endpoint;
|
|
var url = Config.baseUrl + endpoint;
|
|
|
- var headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'token': Config.token };
|
|
|
|
|
- var formData = new URLSearchParams();
|
|
|
|
|
- for (var key in data) { if (data.hasOwnProperty(key)) formData.append(key, data[key]); }
|
|
|
|
|
|
|
|
|
|
- Logger.log('[API] Request:', endpoint, data);
|
|
|
|
|
|
|
+ var body = null;
|
|
|
|
|
+ if (reqMethod === 'GET') {
|
|
|
|
|
+ var headers = { 'Content-Type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + Config.token };
|
|
|
|
|
+ var params = new URLSearchParams();
|
|
|
|
|
+ for (var key in data) { if (data.hasOwnProperty(key)) params.append(key, data[key]); }
|
|
|
|
|
+ var queryString = params.toString();
|
|
|
|
|
+ if (queryString) url += '?' + queryString;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ var headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'token': Config.token};
|
|
|
|
|
+ var formData = new URLSearchParams();
|
|
|
|
|
+ for (var key in data) { if (data.hasOwnProperty(key)) formData.append(key, data[key]); }
|
|
|
|
|
+ body = formData;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Logger.log('[API] Request (' + reqMethod + '):', endpoint, data);
|
|
|
|
|
|
|
|
- return fetch(url, { method: 'POST', headers: headers, body: formData, mode: 'cors', credentials: 'omit' })
|
|
|
|
|
|
|
+ return fetch(url, { method: reqMethod, headers: headers, body: body, mode: 'cors', credentials: 'omit' })
|
|
|
.then(function(response) { return response.json(); })
|
|
.then(function(response) { return response.json(); })
|
|
|
.then(function(res) {
|
|
.then(function(res) {
|
|
|
Logger.log('[API] Response:', endpoint, res);
|
|
Logger.log('[API] Response:', endpoint, res);
|
|
|
if (res.code === 0) return res.data;
|
|
if (res.code === 0) return res.data;
|
|
|
- if (res.code === 401 || res.statusCode === 401) {
|
|
|
|
|
- Logger.warn('[API] Token invalid');
|
|
|
|
|
- if (window.Bridge && window.Bridge._post) window.Bridge._post('toLogin');
|
|
|
|
|
- else alert('登录已过期');
|
|
|
|
|
- throw new Error('Unauthorized');
|
|
|
|
|
- }
|
|
|
|
|
- var msg = res.message || '请求失败';
|
|
|
|
|
- if (window.Bridge && window.Bridge.showToast) {
|
|
|
|
|
- window.Bridge.showToast(msg, 'none');
|
|
|
|
|
- } else {
|
|
|
|
|
- alert(msg);
|
|
|
|
|
- }
|
|
|
|
|
- throw new Error(msg);
|
|
|
|
|
|
|
+ // if (res.code === 401 || res.statusCode === 401) {
|
|
|
|
|
+ // Logger.warn('[API] Token invalid');
|
|
|
|
|
+ // if (window.Bridge && window.Bridge._post) window.Bridge._post('toLogin');
|
|
|
|
|
+ // else alert('登录已过期');
|
|
|
|
|
+ // throw new Error('Unauthorized');
|
|
|
|
|
+ // }
|
|
|
|
|
+ // var msg = res.message || '请求失败';
|
|
|
|
|
+ // if (window.Bridge && window.Bridge.showToast) {
|
|
|
|
|
+ // window.Bridge.showToast(msg, 'none');
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // alert(msg);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // throw new Error(msg);
|
|
|
})
|
|
})
|
|
|
.catch(function(err) { Logger.error('[API] Error:', err); throw err; });
|
|
.catch(function(err) { Logger.error('[API] Error:', err); throw err; });
|
|
|
},
|
|
},
|
|
@@ -263,16 +302,16 @@
|
|
|
// ==============================
|
|
// ==============================
|
|
|
|
|
|
|
|
// 1. 卡片基本信息查询
|
|
// 1. 卡片基本信息查询
|
|
|
- getCardBase: function(ecId, pageName) { return this.request('CardBaseQuery', { ecId: ecId, pageName: pageName }); },
|
|
|
|
|
|
|
+ getCardBase: function(ecId) { return this.request('CardBaseQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 2. 卡片对应活动或赛事详情查询
|
|
// 2. 卡片对应活动或赛事详情查询
|
|
|
getCardDetail: function(ecId) { return this.request('CardDetailQuery', { ecId: ecId }); },
|
|
getCardDetail: function(ecId) { return this.request('CardDetailQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 3. 卡片对应线上赛多个活动查询
|
|
// 3. 卡片对应线上赛多个活动查询
|
|
|
- getMatchRsDetail: function(ecId) { return this.request('MatchRsDetailQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getMatchRsDetail: function(ecId, ocaId) { return this.request('MatchRsDetailQuery', { ecId: ecId, ocaId: ocaId }); },
|
|
|
|
|
|
|
|
// 4. 排名查询
|
|
// 4. 排名查询
|
|
|
- getRankDetail: function(mcIdListStr, mcType, dispArrStr) { return this.request('CardRankDetailQuery', { mcIdListStr: mcIdListStr, mcType: mcType, dispArrStr: dispArrStr }); },
|
|
|
|
|
|
|
+ getRankDetail: function(mcIdListStr, mcType, ocaId, dispArrStr) { return this.request('CardRankDetailQuery', { mcIdListStr: mcIdListStr, mcType: mcType, ocaId: ocaId, dispArrStr: dispArrStr }); },
|
|
|
|
|
|
|
|
// 5. 卡片用户当前排名查询
|
|
// 5. 卡片用户当前排名查询
|
|
|
getUserCurrentRank: function(ecId) { return this.request('UserCurrentRankNumQuery', { ecId: ecId }); },
|
|
getUserCurrentRank: function(ecId) { return this.request('UserCurrentRankNumQuery', { ecId: ecId }); },
|
|
@@ -284,7 +323,7 @@
|
|
|
isNewUserInCardComp: function(ecId) { return this.request('IsNewUserInCardComp', { ecId: ecId }); },
|
|
isNewUserInCardComp: function(ecId) { return this.request('IsNewUserInCardComp', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 8. 线上赛报名页面信息详情
|
|
// 8. 线上赛报名页面信息详情
|
|
|
- getOnlineMcSignUpDetail: function(ecId) { return this.request('OnlineMcSignUpDetail', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getOnlineMcSignUpDetail: function(ecId, mcId) { return this.request('OnlineMcSignUpDetail', { ecId: ecId, mcId: mcId }); },
|
|
|
|
|
|
|
|
// 9. 线上赛报名(重新分组)
|
|
// 9. 线上赛报名(重新分组)
|
|
|
signUpOnline: function(mcId, coiId, selectTeam, nickName) {
|
|
signUpOnline: function(mcId, coiId, selectTeam, nickName) {
|
|
@@ -295,7 +334,7 @@
|
|
|
isAllowMcSignUp: function(ecId) { return this.request('IsAllowMcSignUp', { ecId: ecId }); },
|
|
isAllowMcSignUp: function(ecId) { return this.request('IsAllowMcSignUp', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 11. 玩家当前月挑战记录查询
|
|
// 11. 玩家当前月挑战记录查询
|
|
|
- getCurrentMonthlyChallenge: function() { return this.request('CurrentMonthlyChallengeQuery', {}); },
|
|
|
|
|
|
|
+ getCurrentMonthlyChallenge: function(year, month) { return this.request('CurrentMonthlyChallengeQuery', {year: year, month: month}); },
|
|
|
|
|
|
|
|
// 12. 卡片配置信息查询
|
|
// 12. 卡片配置信息查询
|
|
|
getCardConfig: function(ecId, pageName) { return this.request('CardConfigQuery', { ecId: ecId, pageName: pageName }); },
|
|
getCardConfig: function(ecId, pageName) { return this.request('CardConfigQuery', { ecId: ecId, pageName: pageName }); },
|
|
@@ -307,16 +346,16 @@
|
|
|
getMonthlyChallenge: function() { return this.request('MonthlyChallengeQuery', {}); },
|
|
getMonthlyChallenge: function() { return this.request('MonthlyChallengeQuery', {}); },
|
|
|
|
|
|
|
|
// 15. 月挑战排名查询
|
|
// 15. 月挑战排名查询
|
|
|
- getMonthRankDetail: function() { return this.request('MonthRankDetailQuery', {}); },
|
|
|
|
|
|
|
+ getMonthRankDetail: function(year, month, dispArrStr) { return this.request('MonthRankDetailQuery', {year: year, month: month, dispArrStr: dispArrStr}); },
|
|
|
|
|
|
|
|
// 16. 玩家活动成就查询
|
|
// 16. 玩家活动成就查询
|
|
|
getAchievement: function() { return this.request('AchievementQuery', {}); },
|
|
getAchievement: function() { return this.request('AchievementQuery', {}); },
|
|
|
|
|
|
|
|
// 17. 玩家兑换记录查询
|
|
// 17. 玩家兑换记录查询
|
|
|
- getExchangeList: function(ecId) { return this.request('ExchangeListQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getExchangeList: function() { return this.request('ExchangeListQuery', {}); },
|
|
|
|
|
|
|
|
// 18. 玩家兑换详情查询
|
|
// 18. 玩家兑换详情查询
|
|
|
- getExchangeDetail: function(ecId, exchangeId) { return this.request('ExchangeDetailQuery', { ecId: ecId, exchangeId: exchangeId }); },
|
|
|
|
|
|
|
+ getExchangeDetail: function(oarId) { return this.request('ExchangeDetailQuery', { oarId: oarId}); },
|
|
|
|
|
|
|
|
// 19. 未读消息列表查询
|
|
// 19. 未读消息列表查询
|
|
|
getUnReadMessages: function(relationId, relationType) { return this.request('UnReadMessageQuery', { relationId: relationId, relationType: relationType || 2 }); },
|
|
getUnReadMessages: function(relationId, relationType) { return this.request('UnReadMessageQuery', { relationId: relationId, relationType: relationType || 2 }); },
|
|
@@ -325,22 +364,22 @@
|
|
|
readMessage: function(mqIdListStr) { return this.request('ReadMessage', { mqIdListStr: mqIdListStr }); },
|
|
readMessage: function(mqIdListStr) { return this.request('ReadMessage', { mqIdListStr: mqIdListStr }); },
|
|
|
|
|
|
|
|
// 21. 卡片对应地图列表详情查询
|
|
// 21. 卡片对应地图列表详情查询
|
|
|
- getMapList: function(ecId) { return this.request('MapListQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getMapList: function(mcId) { return this.request('MapListQuery', { mcId: mcId }); },
|
|
|
|
|
|
|
|
// 22. 赛事总成绩统计查询
|
|
// 22. 赛事总成绩统计查询
|
|
|
- getCompStatistic: function(ecId) { return this.request('CompStatisticQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getCompStatistic: function(mcId) { return this.request('CompStatisticQuery', { mcId: mcId }); },
|
|
|
|
|
|
|
|
// 23. 警告列表查询
|
|
// 23. 警告列表查询
|
|
|
getWarnMessage: function(ecId) { return this.request('WarnMessageQuery', { ecId: ecId }); },
|
|
getWarnMessage: function(ecId) { return this.request('WarnMessageQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 24. 查询电子证书样式
|
|
// 24. 查询电子证书样式
|
|
|
- getCertStyle: function(ecId) { return this.request('CertStyleQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getCertStyle: function(certStyleType) { return this.request('CertStyleQuery', { certStyleType: certStyleType }); },
|
|
|
|
|
|
|
|
// 25. 查询电子证书成就对应用户基本信息
|
|
// 25. 查询电子证书成就对应用户基本信息
|
|
|
- getUserBaseInCertificate: function(ecId) { return this.request('UserBaseQueryInCertificate', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getUserBaseInCertificate: function(oarId) { return this.request('UserBaseQueryInCertificate', { oarId: oarId }); },
|
|
|
|
|
|
|
|
// 26. 根据成就信息确认生成电子证书
|
|
// 26. 根据成就信息确认生成电子证书
|
|
|
- createCertificate: function(data) { return this.request('CertificateCreateByUserAi', data); },
|
|
|
|
|
|
|
+ createCertificate: function(nickName,oarId) { return this.request('CertificateCreateByUserAi', {nickName: nickName, oarId: oarId}); },
|
|
|
|
|
|
|
|
// 27. 卡片内可用积分查询
|
|
// 27. 卡片内可用积分查询
|
|
|
getScore: function(ecId) { return this.request('OnlineScoreQuery', { ecId: ecId }); },
|
|
getScore: function(ecId) { return this.request('OnlineScoreQuery', { ecId: ecId }); },
|
|
@@ -349,25 +388,25 @@
|
|
|
getGoodsList: function(ecId) { return this.request('CanExchangeGoodsList', { ecId: ecId }); },
|
|
getGoodsList: function(ecId) { return this.request('CanExchangeGoodsList', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 29. 积分可兑换商品详情
|
|
// 29. 积分可兑换商品详情
|
|
|
- getGoodsDetail: function(goodsId) { return this.request('CanExchangeGoodsDetail', { goodsId: goodsId }); },
|
|
|
|
|
|
|
+ getGoodsDetail: function(ecId, goodsId) { return this.request('CanExchangeGoodsDetail', {ecid: ecId, goodsId: goodsId }); },
|
|
|
|
|
|
|
|
// 30. 积分兑换商品
|
|
// 30. 积分兑换商品
|
|
|
- exchangeGoods: function(ecId, goodsId) { return this.request('ScoreExchangeGoods', { ecId: ecId, goodsId: goodsId }); },
|
|
|
|
|
|
|
+ exchangeGoods: function(ecId, goodsId, exchNum) { return this.request('ScoreExchangeGoods', { ecId: ecId, goodsId: goodsId, exchNum: exchNum }); },
|
|
|
|
|
|
|
|
// 31. 用户基本信息查询
|
|
// 31. 用户基本信息查询
|
|
|
- getUserInfo: function() { return this.request('UserBasicInformationQuery', {}); },
|
|
|
|
|
|
|
+ getUserInfo: function() { return this.request('UserBasicInformationQuery', {}, 'GET'); },
|
|
|
|
|
|
|
|
// 32. 网格卡片信息查询
|
|
// 32. 网格卡片信息查询
|
|
|
getGrids: function(ecId) { return this.request('GridsQuery', { ecId: ecId }); },
|
|
getGrids: function(ecId) { return this.request('GridsQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
|
// 33. 卡片URI查询
|
|
// 33. 卡片URI查询
|
|
|
- getCardUri: function(ecId) { return this.request('CardUriQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getCardUrl: function(actId, matchType) { return this.request('CardUrlQuery', { actId: actId, matchType: matchType }); },
|
|
|
|
|
|
|
|
// 34. 赛事完赛信息查询
|
|
// 34. 赛事完赛信息查询
|
|
|
- getMatchFinishInfo: function(ecId) { return this.request('MatchFinishInfoQuery', { ecId: ecId }); },
|
|
|
|
|
|
|
+ getMatchFininshInfo: function(actId, matchType) { return this.request('MatchFininshInfoQuery', { actId, matchType }); },
|
|
|
|
|
|
|
|
// 35. Redis 重建 (管理接口)
|
|
// 35. Redis 重建 (管理接口)
|
|
|
- redisRebuild: function(ecId) { return this.request('RedisRebuild', { ecId: ecId }); }
|
|
|
|
|
|
|
+ redisRebulid: function(compId) { return this.request('RedisRebulid', { compId: compId }); }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
window.API = API;
|
|
window.API = API;
|