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
72f2e453
Commit
72f2e453
authored
Dec 03, 2024
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
bd3c380e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
systemTrigger.control.ts
src/functional/mvc/control/systemTrigger.control.ts
+17
-9
No files found.
src/functional/mvc/control/systemTrigger.control.ts
View file @
72f2e453
...
@@ -5,7 +5,7 @@ import { SystemTriggerVO, SystemTriggerPageVO } from "../service/systemTrigger.s
...
@@ -5,7 +5,7 @@ import { SystemTriggerVO, SystemTriggerPageVO } from "../service/systemTrigger.s
let
{
logger
,
Res3Utils
,
optionalUtils
:
Optional
,
apiAssertUtils
:
ApiAssert
,
datetimeUtils
}
=
require
(
'@madex/ex-js-public'
);
let
{
logger
,
Res3Utils
,
optionalUtils
:
Optional
,
apiAssertUtils
:
ApiAssert
,
datetimeUtils
}
=
require
(
'@madex/ex-js-public'
);
import
{
ErrorCode
}
from
"../../../constant/errorCode"
;
import
{
ErrorCode
}
from
"../../../constant/errorCode"
;
import
{
getCurrentUserId
}
from
"../../../utils/aclUserUtils"
;
import
{
getCurrentUserId
}
from
"../../../utils/aclUserUtils"
;
import
{
coinType
,
spotPairs
}
from
"@madex/ex-ts-dao"
;
import
{
coinType
,
contractPairs
,
spotPairs
}
from
"@madex/ex-ts-dao"
;
let
isIp
=
require
(
'is-ip'
);
let
isIp
=
require
(
'is-ip'
);
/**
/**
...
@@ -114,16 +114,24 @@ async function paramValid(systemTriggerVO: SystemTriggerVO) {
...
@@ -114,16 +114,24 @@ async function paramValid(systemTriggerVO: SystemTriggerVO) {
}
}
}
}
else
{
else
{
//TODO: 这个需要确定下 之前的有 激活 隐藏 开启/关闭充值 开启/关闭提现 开启/关闭划转 现在没有对应的 激活 隐藏对应的字段了
// 之前的 只有 ex_pair 现在现货和合约是分开的 查询的是 spot_pairs 是否需要补充别的查询合约交易对的逻辑???
// 触发活动(coin_type:1xxx -- is_active=0 : 1010,is_active=1 :1011 ,enable_deposit=0:1020,enable_deposit=1:1021, enable_withdraw=0:1030,enable_withdraw=1:1031,enable_transfer=0:1040,enable_transfer=1:1041;
// 触发活动(coin_type:1xxx -- is_active=0 : 1010,is_active=1 :1011 ,enable_deposit=0:1020,enable_deposit=1:1021, enable_withdraw=0:1030,enable_withdraw=1:1031,enable_transfer=0:1040,enable_transfer=1:1041;
// ex_pair:2xxx -- is_active=0:2010,is_active=1:2011, is_hide=0:2020,is_hide=1:2021)
// ex_pair:2xxx -- is_active=0:2010,is_active=1:2011, is_hide=0:2020,is_hide=1:2021)
let
dbInfo
=
await
spotPairs
.
prototype
.
findOne
({
let
dbInfo
:
any
;
if
(
symbolOrPair
.
endsWith
(
"_SWAP"
)){
dbInfo
=
await
contractPairs
.
prototype
.
findOne
({
where
:
{
where
:
{
symbol
:
symbolOrPair
symbol
:
symbolOrPair
},
},
raw
:
true
raw
:
true
});
});
}
else
{
dbInfo
=
await
spotPairs
.
prototype
.
findOne
({
where
:
{
symbol
:
symbolOrPair
},
raw
:
true
});
}
if
(
!
dbInfo
)
{
if
(
!
dbInfo
)
{
throw
ErrorCode
.
PAIR_NOT_EXIST
throw
ErrorCode
.
PAIR_NOT_EXIST
}
}
...
...
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