Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-match
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
MyCard
ygopro-match
Commits
7331ef0b
Commit
7331ef0b
authored
Nov 13, 2018
by
IamI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging.
parent
8cf45e48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
main.js
main.js
+5
-2
No files found.
main.js
View file @
7331ef0b
...
@@ -343,10 +343,13 @@ let matchResponse = function(req, res) {
...
@@ -343,10 +343,13 @@ let matchResponse = function(req, res) {
switch
(
config
.
match
.
reconnect
)
{
switch
(
config
.
match
.
reconnect
)
{
case
"
reconnect
"
:
case
"
reconnect
"
:
res
.
writeHead
(
200
,
{
'
Content-Type
'
:
'
application/json
'
,
'
Cache-Control
'
:
'
no-cache
'
});
res
.
writeHead
(
200
,
{
'
Content-Type
'
:
'
application/json
'
,
'
Cache-Control
'
:
'
no-cache
'
});
res
.
end
(
playingPlayerPool
.
get
(
username
));
let
message
=
playingPlayerPool
.
get
(
username
);
localLog
(
username
+
"
is relining to:
"
+
message
);
res
.
end
(
message
);
return
;
return
;
case
"
drop
"
:
case
"
drop
"
:
rejectUser
(
res
);
rejectUser
(
res
);
localLog
(
username
+
"
is droped due to try relining.
"
);
return
;
return
;
default
:
default
:
break
;
// 什么都不做,继续加入匹配池。
break
;
// 什么都不做,继续加入匹配池。
...
@@ -357,7 +360,7 @@ let matchResponse = function(req, res) {
...
@@ -357,7 +360,7 @@ let matchResponse = function(req, res) {
localLog
(
username
+
'
apply for a
'
+
arg
.
arena
+
'
match.
'
);
localLog
(
username
+
'
apply for a
'
+
arg
.
arena
+
'
match.
'
);
// 选择匹配池
// 选择匹配池
let
pool
=
null
;
let
pool
=
null
;
if
(
arg
.
arena
==
'
athletic
'
)
if
(
arg
.
arena
==
=
'
athletic
'
)
pool
=
athleticUserPool
;
pool
=
athleticUserPool
;
else
else
pool
=
entertainUserPool
;
pool
=
entertainUserPool
;
...
...
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