Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wmvm
ts-api-demo
Commits
15524305
Commit
15524305
authored
Dec 10, 2024
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
387e68b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
coinTypeApply.service.ts
src/functional/mvc/service/coinTypeApply.service.ts
+1
-0
pairApply.service.ts
src/functional/mvc/service/pairApply.service.ts
+2
-1
spotPair.service.ts
src/functional/mvc/service/spotPair.service.ts
+6
-0
No files found.
src/functional/mvc/service/coinTypeApply.service.ts
View file @
15524305
...
@@ -360,6 +360,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
...
@@ -360,6 +360,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
}
}
let
res
=
await
addCoin2Core
(
dbSymbol
.
symbol
,
dbSymbol
.
id
);
let
res
=
await
addCoin2Core
(
dbSymbol
.
symbol
,
dbSymbol
.
id
);
if
(
!
res
.
is_success
)
{
if
(
!
res
.
is_success
)
{
RobotUtil
.
sendRobotMessage
(
RobotUtil
.
ROBOT_KEYS
.
COMMON_KEY
,
res
.
err_msg
);
throw
ErrorCode
.
ADD_PAIR_TO_CORE_ERR
;
throw
ErrorCode
.
ADD_PAIR_TO_CORE_ERR
;
}
}
await
coinType
.
prototype
.
update
({
main_status
:
1
},
{
await
coinType
.
prototype
.
update
({
main_status
:
1
},
{
...
...
src/functional/mvc/service/pairApply.service.ts
View file @
15524305
...
@@ -367,6 +367,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
...
@@ -367,6 +367,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
}
}
let
optResult
=
await
addPairToCore
(
param
);
let
optResult
=
await
addPairToCore
(
param
);
if
(
!
optResult
.
is_success
)
{
if
(
!
optResult
.
is_success
)
{
RobotUtil
.
sendRobotMessage
(
RobotUtil
.
ROBOT_KEYS
.
COMMON_KEY
,
optResult
.
err_msg
);
throw
ErrorCode
.
ADD_PAIR_TO_CORE_ERR
;
throw
ErrorCode
.
ADD_PAIR_TO_CORE_ERR
;
}
}
//现货
//现货
...
@@ -428,7 +429,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
...
@@ -428,7 +429,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
}
}
//管理后台操作日志
//管理后台操作日志
addOptLog
(
currentUser
.
userId
,
0
,
'上新交易对申请审核'
,
ip
,
`msg:
${
reason
}
,dbInfo:
${
JSON
.
stringify
(
dbApply
)
}
`
,
'交易上下线管理'
);
addOptLog
(
currentUser
.
userId
,
0
,
'上新交易对申请审核'
,
ip
,
`msg:
${
reason
}
,dbInfo:
${
dbApply
.
id
}
`
,
'交易上下线管理'
);
return
'success'
;
return
'success'
;
}
}
...
...
src/functional/mvc/service/spotPair.service.ts
View file @
15524305
...
@@ -140,6 +140,12 @@ export const update = async (param: AddParam, currentUserId: any, ip: any) => {
...
@@ -140,6 +140,12 @@ export const update = async (param: AddParam, currentUserId: any, ip: any) => {
if
(
param
.
quantity_increment
)
{
if
(
param
.
quantity_increment
)
{
updateInfo
[
'quantity_increment'
]
=
param
.
quantity_increment
updateInfo
[
'quantity_increment'
]
=
param
.
quantity_increment
}
}
if
(
param
.
maker_fee
)
{
updateInfo
[
'maker_fee'
]
=
param
.
maker_fee
}
if
(
param
.
taker_fee
)
{
updateInfo
[
'taker_fee'
]
=
param
.
taker_fee
}
updateInfo
[
'is_active'
]
=
param
.
is_active
?
param
.
is_active
:
0
;
updateInfo
[
'is_active'
]
=
param
.
is_active
?
param
.
is_active
:
0
;
updateInfo
[
'is_hide'
]
=
param
.
is_hide
?
param
.
is_hide
:
0
;
updateInfo
[
'is_hide'
]
=
param
.
is_hide
?
param
.
is_hide
:
0
;
...
...
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