Commit 82fe2b73 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 35c7cea8 0e31eb21
Pipeline #1532 passed with stages
in 28 minutes and 41 seconds
......@@ -476,9 +476,7 @@ init = () ->
arena: settings.modules.arena_mode.mode
})
try
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData, {
responseType: "json"
})
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData)
catch e
log.warn 'ARENA INIT POST ERROR', e
......@@ -566,14 +564,10 @@ init = () ->
scores = await dataManager.getRandomScoreTop10()
try
await axios.post(settings.modules.random_duel.post_match_scores, {
headers: { 'content-type': 'application/x-www-form-urlencoded' },
responseType: "json",
data: qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
})
})
await axios.post(settings.modules.random_duel.post_match_scores, qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
}))
catch e
log.warn 'RANDOM SCORE POST ERROR', e.toString()
......
......@@ -611,9 +611,7 @@
arena: settings.modules.arena_mode.mode
});
try {
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData, {
responseType: "json"
});
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData);
} catch (error1) {
e = error1;
log.warn('ARENA INIT POST ERROR', e);
......@@ -730,15 +728,11 @@
var scores;
scores = (await dataManager.getRandomScoreTop10());
try {
await axios.post(settings.modules.random_duel.post_match_scores, {
headers: {
'content-type': 'application/x-www-form-urlencoded'
},
responseType: "json",
data: qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
})
await axios.post(settings.modules.random_duel.post_match_scores, qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
}), {
responseType: "json"
});
} catch (error1) {
e = error1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment