Commit 72f2e453 authored by ml's avatar ml

修改

parent bd3c380e
......@@ -5,7 +5,7 @@ import { SystemTriggerVO, SystemTriggerPageVO } from "../service/systemTrigger.s
let { logger, Res3Utils, optionalUtils: Optional, apiAssertUtils: ApiAssert, datetimeUtils } = require('@madex/ex-js-public');
import { ErrorCode } from "../../../constant/errorCode";
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');
/**
......@@ -114,16 +114,24 @@ async function paramValid(systemTriggerVO: SystemTriggerVO) {
}
}
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;
// 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({
where: {
symbol: symbolOrPair
},
raw: true
});
let dbInfo:any;
if (symbolOrPair.endsWith("_SWAP")){
dbInfo = await contractPairs.prototype.findOne({
where: {
symbol: symbolOrPair
},
raw: true
});
}else {
dbInfo = await spotPairs.prototype.findOne({
where: {
symbol: symbolOrPair
},
raw: true
});
}
if (!dbInfo) {
throw ErrorCode.PAIR_NOT_EXIST
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment