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
1c0d7067
Commit
1c0d7067
authored
Nov 15, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
04888860
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ygopro-server.coffee
ygopro-server.coffee
+3
-1
ygopro-server.js
ygopro-server.js
+3
-1
No files found.
ygopro-server.coffee
View file @
1c0d7067
...
...
@@ -468,6 +468,8 @@ init = () ->
if
settings
.
modules
.
tips
.
get
load_tips
()
if
settings
.
modules
.
tips
.
enabled
setInterval
()
->
for
room
in
ROOM_all
when
room
and
room
.
established
ygopro
.
stoc_send_random_tip_to_room
(
room
)
if
room
.
duel_stage
==
ygopro
.
constants
.
DUEL_STAGE
.
SIDING
or
room
.
duel_stage
==
ygopro
.
constants
.
DUEL_STAGE
.
BEGIN
...
...
@@ -3853,7 +3855,7 @@ if true
response
.
writeHead
(
200
)
response
.
end
(
addCallback
(
u
.
query
.
callback
,
"['密码错误', 0]"
))
return
success
=
await
load_
tip
s
()
success
=
await
load_
dialogue
s
()
response
.
writeHead
(
200
)
if
success
response
.
end
(
addCallback
(
u
.
query
.
callback
,
"['dialogue ok', '"
+
settings
.
modules
.
tips
.
get
+
"']"
))
...
...
ygopro-server.js
View file @
1c0d7067
...
...
@@ -593,6 +593,8 @@
}
if
(
settings
.
modules
.
tips
.
get
)
{
load_tips
();
}
if
(
settings
.
modules
.
tips
.
enabled
)
{
setInterval
(
function
()
{
var
l
,
len1
,
room
;
for
(
l
=
0
,
len1
=
ROOM_all
.
length
;
l
<
len1
;
l
++
)
{
...
...
@@ -5142,7 +5144,7 @@
response
.
end
(
addCallback
(
u
.
query
.
callback
,
"
['密码错误', 0]
"
));
return
;
}
success
=
(
await
load_
tip
s
());
success
=
(
await
load_
dialogue
s
());
response
.
writeHead
(
200
);
if
(
success
)
{
response
.
end
(
addCallback
(
u
.
query
.
callback
,
"
['dialogue ok', '
"
+
settings
.
modules
.
tips
.
get
+
"
']
"
));
...
...
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