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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro
Commits
82fe2b73
Commit
82fe2b73
authored
Dec 02, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mc'
parents
35c7cea8
0e31eb21
Pipeline
#1532
passed with stages
in 28 minutes and 41 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 @
82fe2b73
...
...
@@ -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
()
...
...
ygopro-server.js
View file @
82fe2b73
...
...
@@ -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
;
...
...
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