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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
srvpro
Commits
361928c5
Commit
361928c5
authored
May 26, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error log
parent
2ca3c28c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ygopro-server.coffee
ygopro-server.coffee
+3
-3
ygopro-server.js
ygopro-server.js
+3
-3
No files found.
ygopro-server.coffee
View file @
361928c5
...
...
@@ -582,7 +582,7 @@ net.createServer (client) ->
buffer
=
new
Buffer
(
replay
.
replay_buffer
,
'binary'
)
zlib
.
unzip
buffer
,
(
err
,
replay_buffer
)
->
if
err
log
.
info
err
log
.
info
"cloud replay unzip error: "
+
err
ygopro
.
stoc_send_chat
(
client
,
"播放录像出错"
,
ygopro
.
constants
.
COLORS
.
RED
)
client
.
end
()
return
...
...
@@ -732,7 +732,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
_
.
each
result
,
(
replay_id
,
id
)
->
redisdb
.
hgetall
"replay:"
+
replay_id
,
(
err
,
replay
)
->
if
err
or
!
replay
log
.
info
err
log
.
info
"cloud replay getall error: "
+
err
return
ygopro
.
stoc_send_chat
(
client
,
"<
#{
id
-
0
+
1
}
> R#
#{
replay_id
}
#{
replay
.
player_names
}
#{
replay
.
date_time
}
"
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
return
...
...
@@ -751,7 +751,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
if
(
replay_id
>
0
and
replay_id
<=
9
)
redisdb
.
lindex
client
.
remoteAddress
+
":replays"
,
replay_id
-
1
,
(
err
,
replay_id
)
->
if
err
or
!
replay_id
log
.
info
err
log
.
info
"cloud replay replayid error: "
+
err
ygopro
.
stoc_die
(
client
,
"没有找到录像"
)
return
redisdb
.
hgetall
"replay:"
+
replay_id
,
client
.
open_cloud_replay
...
...
ygopro-server.js
View file @
361928c5
...
...
@@ -761,7 +761,7 @@
buffer
=
new
Buffer
(
replay
.
replay_buffer
,
'
binary
'
);
zlib
.
unzip
(
buffer
,
function
(
err
,
replay_buffer
)
{
if
(
err
)
{
log
.
info
(
err
);
log
.
info
(
"
cloud replay unzip error:
"
+
err
);
ygopro
.
stoc_send_chat
(
client
,
"
播放录像出错
"
,
ygopro
.
constants
.
COLORS
.
RED
);
client
.
end
();
return
;
...
...
@@ -919,7 +919,7 @@
_
.
each
(
result
,
function
(
replay_id
,
id
)
{
redisdb
.
hgetall
(
"
replay:
"
+
replay_id
,
function
(
err
,
replay
)
{
if
(
err
||
!
replay
)
{
log
.
info
(
err
);
log
.
info
(
"
cloud replay getall error:
"
+
err
);
return
;
}
ygopro
.
stoc_send_chat
(
client
,
"
<
"
+
(
id
-
0
+
1
)
+
"
> R#
"
+
replay_id
+
"
"
+
replay
.
player_names
+
"
"
+
replay
.
date_time
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
...
...
@@ -938,7 +938,7 @@
if
(
replay_id
>
0
&&
replay_id
<=
9
)
{
redisdb
.
lindex
(
client
.
remoteAddress
+
"
:replays
"
,
replay_id
-
1
,
function
(
err
,
replay_id
)
{
if
(
err
||
!
replay_id
)
{
log
.
info
(
err
);
log
.
info
(
"
cloud replay replayid error:
"
+
err
);
ygopro
.
stoc_die
(
client
,
"
没有找到录像
"
);
return
;
}
...
...
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