fixed tracking api
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
export const SHARECODE_REGEX = /^CSGO(?:-?[ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789]{5}){5}$/
|
export const SHARECODE_REGEX = /^CSGO(?:-?[ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789]{5}){5}$/
|
||||||
export const AUTHCODE_REGEX = /^[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{5}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}$/
|
export const AUTHCODE_REGEX = /^[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{5}-[ABCDEFGHJKLMNOPQRSTUVWXYZ23456789]{4}$/
|
||||||
|
|
||||||
|
export const NAV_HEIGHT = 70
|
||||||
|
export const FOOTER_HEIGHT = 200
|
||||||
|
@@ -201,10 +201,7 @@ export const TrackMe = async (store, id64, authcode, sharecode = '') => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await axios
|
await axios
|
||||||
.post({
|
.post(`${API_URL}/player/${id64}/track`, `authcode=${authcode}&sharecode=${sharecode}`)
|
||||||
url: `${API_URL}/player/${id64}/track`,
|
|
||||||
data: `authcode=${authcode}&sharecode=${sharecode}`
|
|
||||||
})
|
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.status === STATUS.ACCEPTED) {
|
if (res.status === STATUS.ACCEPTED) {
|
||||||
store.commit({
|
store.commit({
|
||||||
|
@@ -209,8 +209,6 @@ export default {
|
|||||||
|
|
||||||
data.matchDetails = store.state.matchDetails
|
data.matchDetails = store.state.matchDetails
|
||||||
|
|
||||||
console.log(data.matchDetails)
|
|
||||||
|
|
||||||
data.matchDetails.stats.forEach(p => {
|
data.matchDetails.stats.forEach(p => {
|
||||||
p.player.name = ProcessName(p.player.name)
|
p.player.name = ProcessName(p.player.name)
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user