Commit 15524305 authored by ml's avatar ml

修改

parent 387e68b1
......@@ -360,6 +360,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
}
let res = await addCoin2Core(dbSymbol.symbol, dbSymbol.id);
if (!res.is_success) {
RobotUtil.sendRobotMessage(RobotUtil.ROBOT_KEYS.COMMON_KEY, res.err_msg);
throw ErrorCode.ADD_PAIR_TO_CORE_ERR;
}
await coinType.prototype.update({ main_status: 1 }, {
......
......@@ -367,6 +367,7 @@ export async function review(id: any, currentUser: any, ip: string | undefined)
}
let optResult = await addPairToCore(param);
if (!optResult.is_success) {
RobotUtil.sendRobotMessage(RobotUtil.ROBOT_KEYS.COMMON_KEY, optResult.err_msg);
throw ErrorCode.ADD_PAIR_TO_CORE_ERR;
}
//现货
......@@ -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';
}
......
......@@ -140,6 +140,12 @@ export const update = async (param: AddParam, currentUserId: any, ip: any) => {
if (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_hide'] = param.is_hide ? param.is_hide : 0;
......
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