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
91a7d099
Commit
91a7d099
authored
Nov 15, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unfinished
parent
5442fd83
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
data-manager/entities/Ban.js
data-manager/entities/Ban.js
+2
-1
data-manager/entities/Ban.ts
data-manager/entities/Ban.ts
+2
-1
data-manager/entities/User.ts
data-manager/entities/User.ts
+2
-0
data-manager/entities/VipKey.ts
data-manager/entities/VipKey.ts
+18
-0
ygopro-server.coffee
ygopro-server.coffee
+3
-1
No files found.
data-manager/entities/Ban.js
View file @
91a7d099
...
...
@@ -28,7 +28,8 @@ __decorate([
__metadata
(
"
design:type
"
,
String
)
],
Ban
.
prototype
,
"
name
"
,
void
0
);
Ban
=
__decorate
([
typeorm_1
.
Entity
()
typeorm_1
.
Entity
(),
typeorm_1
.
Unique
([
"
ip
"
,
"
name
"
])
],
Ban
);
exports
.
Ban
=
Ban
;
//# sourceMappingURL=Ban.js.map
\ No newline at end of file
data-manager/entities/Ban.ts
View file @
91a7d099
import
{
Column
,
Entity
,
Index
,
PrimaryGeneratedColumn
}
from
"
typeorm
"
;
import
{
Column
,
Entity
,
Index
,
PrimaryGeneratedColumn
,
Unique
}
from
"
typeorm
"
;
@
Entity
()
@
Unique
([
"
ip
"
,
"
name
"
])
export
class
Ban
{
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
...
...
data-manager/entities/User.ts
View file @
91a7d099
...
...
@@ -7,4 +7,6 @@ export class User {
@
Column
(
"
varchar
"
,
{
length
:
16
,
nullable
:
true
})
chatColor
:
string
;
}
data-manager/entities/VipKey.ts
0 → 100644
View file @
91a7d099
import
{
Column
,
Entity
,
Index
,
PrimaryGeneratedColumn
,
Unique
}
from
"
typeorm
"
;
@
Entity
()
export
class
VipKey
{
@
PrimaryGeneratedColumn
({
unsigned
:
true
,
type
:
"
bigint
"
})
id
:
number
;
@
Index
({
unique
:
true
})
@
Column
(
"
varchar
"
,
{
length
:
30
})
key
:
string
;
@
Column
(
"
int
"
,
{
unsigned
:
true
})
type
:
number
;
toJSON
()
{
return
{
key
:
this
.
key
,
type
:
this
.
type
};
}
}
ygopro-server.coffee
View file @
91a7d099
...
...
@@ -972,6 +972,8 @@ CLIENT_get_authorize_key = global.CLIENT_get_authorize_key = (client) ->
return
client
.
name_vpass
else
if
settings
.
modules
.
mycard
.
enabled
or
settings
.
modules
.
tournament_mode
.
enabled
or
settings
.
modules
.
challonge
.
enabled
or
client
.
is_local
return
client
.
name
else
if
client
.
vip
return
client
.
name
+
"$"
+
client
.
vpass
else
return
client
.
ip
+
":"
+
client
.
name
...
...
@@ -3373,7 +3375,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_help}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_status}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_buy}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_password}"
)
#
ygopro.stoc_send_chat(client, "${chat_order_vip_password}")
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_dialogues}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_words}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_vip_victory}"
)
...
...
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