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
80723e05
Commit
80723e05
authored
Oct 27, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
180a36a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ygopro-server.coffee
ygopro-server.coffee
+8
-0
ygopro-server.js
ygopro-server.js
+12
-2
No files found.
ygopro-server.coffee
View file @
80723e05
...
...
@@ -2211,6 +2211,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
matchPermitRes
=
await
axios
.
get
settings
.
modules
.
arena_mode
.
check_permit
,
responseType
:
'json'
timeout
:
3000
params
:
username
:
client
.
name
,
password
:
info
.
pass
,
arena
:
settings
.
modules
.
arena_mode
.
mode
match_permit
=
matchPermitRes
.
data
catch
e
log
.
warn
"match permit fail
#{
e
.
toString
()
}
"
...
...
@@ -2263,6 +2267,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
userDataRes
=
await
axios
.
get
userUrl
,
responseType
:
'json'
timeout
:
10000
params
:
api_key
:
settings
.
modules
.
mycard
.
auth_key
,
api_username
:
client
.
name
,
skip_track_visit
:
true
userData
=
userDataRes
.
data
#console.log userData
catch
e
...
...
ygopro-server.js
View file @
80723e05
...
...
@@ -2915,7 +2915,12 @@
try
{
matchPermitRes
=
(
await
axios
.
get
(
settings
.
modules
.
arena_mode
.
check_permit
,
{
responseType
:
'
json
'
,
timeout: 3000
timeout
:
3000
,
params
:
{
username
:
client
.
name
,
password
:
info
.
pass
,
arena
:
settings
.
modules
.
arena_mode
.
mode
}
}));
match_permit
=
matchPermitRes
.
data
;
}
catch
(
error1
)
{
...
...
@@ -2987,7 +2992,12 @@
//console.log(userUrl)
userDataRes
=
(
await
axios
.
get
(
userUrl
,
{
responseType
:
'
json
'
,
timeout: 10000
timeout
:
10000
,
params
:
{
api_key
:
settings
.
modules
.
mycard
.
auth_key
,
api_username
:
client
.
name
,
skip_track_visit
:
true
}
}));
userData
=
userDataRes
.
data
;
}
catch
(
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