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
efee5af1
Commit
efee5af1
authored
Jul 05, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7e52d6d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-tournament.js
ygopro-tournament.js
+2
-2
No files found.
ygopro-server.coffee
View file @
efee5af1
...
@@ -864,7 +864,7 @@ class Room
...
@@ -864,7 +864,7 @@ class Room
return
return
if
settings
.
modules
.
challonge
.
enabled
and
@
started
and
!
@
kicked
if
settings
.
modules
.
challonge
.
enabled
and
@
started
and
!
@
kicked
challonge
.
matches
.
update
({
challonge
.
matches
.
update
({
id
:
settings
.
modules
.
challonge
.
tournament_id
,
id
:
encodeURIComponent
(
settings
.
modules
.
challonge
.
tournament_id
)
,
matchId
:
@
challonge_info
.
id
,
matchId
:
@
challonge_info
.
id
,
match
:
@
challonge_duel_log
,
match
:
@
challonge_duel_log
,
callback
:
(
err
,
data
)
->
callback
:
(
err
,
data
)
->
...
@@ -1521,7 +1521,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
...
@@ -1521,7 +1521,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
else
else
ygopro
.
stoc_send_chat
(
client
,
'${loading_user_info}'
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
ygopro
.
stoc_send_chat
(
client
,
'${loading_user_info}'
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
challonge
.
participants
.
index
({
challonge
.
participants
.
index
({
id
:
settings
.
modules
.
challonge
.
tournament_id
,
id
:
encodeURIComponent
(
settings
.
modules
.
challonge
.
tournament_id
)
,
callback
:
(
err
,
data
)
->
callback
:
(
err
,
data
)
->
if
err
or
!
data
if
err
or
!
data
if
err
if
err
...
@@ -1538,7 +1538,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
...
@@ -1538,7 +1538,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return
return
client
.
challonge_info
=
found
client
.
challonge_info
=
found
challonge
.
matches
.
index
({
challonge
.
matches
.
index
({
id
:
settings
.
modules
.
challonge
.
tournament_id
,
id
:
encodeURIComponent
(
settings
.
modules
.
challonge
.
tournament_id
)
,
callback
:
(
err
,
data
)
->
callback
:
(
err
,
data
)
->
if
client
.
closed
if
client
.
closed
return
return
...
...
ygopro-tournament.js
View file @
efee5af1
...
@@ -155,9 +155,9 @@ var UploadToChallonge = function() {
...
@@ -155,9 +155,9 @@ var UploadToChallonge = function() {
var
player_name
=
player_list
[
k
];
var
player_name
=
player_list
[
k
];
sendResponse
(
"
正在上传玩家
"
+
player_name
+
"
至Challonge。
"
);
sendResponse
(
"
正在上传玩家
"
+
player_name
+
"
至Challonge。
"
);
challonge
.
participants
.
create
({
challonge
.
participants
.
create
({
id
:
challonge_config
.
tournament_id
,
id
:
encodeURIComponent
(
challonge_config
.
tournament_id
)
,
participant
:
{
participant
:
{
name
:
player_name
name
:
encodeURIComponent
(
player_name
)
},
},
callback
:
(
function
(
player_name
,
success_count
)
{
callback
:
(
function
(
player_name
,
success_count
)
{
return
function
(
err
,
data
)
{
return
function
(
err
,
data
)
{
...
...
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