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 = () -> ...@@ -476,9 +476,7 @@ init = () ->
arena: settings.modules.arena_mode.mode arena: settings.modules.arena_mode.mode
}) })
try try
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData, { await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData)
responseType: "json"
})
catch e catch e
log.warn 'ARENA INIT POST ERROR', e log.warn 'ARENA INIT POST ERROR', e
...@@ -566,14 +564,10 @@ init = () -> ...@@ -566,14 +564,10 @@ init = () ->
scores = await dataManager.getRandomScoreTop10() scores = await dataManager.getRandomScoreTop10()
try try
await axios.post(settings.modules.random_duel.post_match_scores, { await axios.post(settings.modules.random_duel.post_match_scores, qs.stringify({
headers: { 'content-type': 'application/x-www-form-urlencoded' }, accesskey: settings.modules.random_duel.post_match_accesskey,
responseType: "json", rank: JSON.stringify(scores)
data: qs.stringify({ }))
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
})
})
catch e catch e
log.warn 'RANDOM SCORE POST ERROR', e.toString() log.warn 'RANDOM SCORE POST ERROR', e.toString()
......
...@@ -611,9 +611,7 @@ ...@@ -611,9 +611,7 @@
arena: settings.modules.arena_mode.mode arena: settings.modules.arena_mode.mode
}); });
try { try {
await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData, { await axios.post(settings.modules.arena_mode.init_post.url + "?" + postData);
responseType: "json"
});
} catch (error1) { } catch (error1) {
e = error1; e = error1;
log.warn('ARENA INIT POST ERROR', e); log.warn('ARENA INIT POST ERROR', e);
...@@ -730,15 +728,11 @@ ...@@ -730,15 +728,11 @@
var scores; var scores;
scores = (await dataManager.getRandomScoreTop10()); scores = (await dataManager.getRandomScoreTop10());
try { try {
await axios.post(settings.modules.random_duel.post_match_scores, { await axios.post(settings.modules.random_duel.post_match_scores, qs.stringify({
headers: { accesskey: settings.modules.random_duel.post_match_accesskey,
'content-type': 'application/x-www-form-urlencoded' rank: JSON.stringify(scores)
}, }), {
responseType: "json", responseType: "json"
data: qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores)
})
}); });
} catch (error1) { } catch (error1) {
e = 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