Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
0e31eb21
Commit
0e31eb21
authored
Dec 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix post again
parent
5cda4475
Pipeline
#1533
passed with stages
in 20 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
23 deletions
+11
-23
ygopro-server.coffee
ygopro-server.coffee
+5
-11
ygopro-server.js
ygopro-server.js
+6
-12
No files found.
ygopro-server.coffee
View file @
0e31eb21
...
...
@@ -411,9 +411,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
...
...
@@ -495,14 +493,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
()
...
...
ygopro-server.js
View file @
0e31eb21
...
...
@@ -522,9 +522,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
);
...
...
@@ -632,15 +630,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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment