Commit a83c4508 authored by ml's avatar ml

资产管理后台-修改费率 增加参数

parent a037a351
......@@ -120,10 +120,10 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
await checkFeeModel(fee_model);
let product_type = pair == 'all' ? 'spot' : 'single';
//生效的费率 与要设置的费率 比对做校验 现在分不开 现货 合约 先不校验 之后分开了 再校验
/* let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
if (feeExist) {
return is_success;
}*/
/* let feeExist = await cancelIfFeeExist(user_id, product_type, symbol, maker_fee, taker_fee);
if (feeExist) {
return is_success;
}*/
let asset = await mainUserAsset.prototype.findOne({
where: {
user_id
......@@ -149,7 +149,7 @@ export const changeUserSpotFee = async function (user_id, symbol, fee_model, mak
await sleep(1000);
//请求撮合 修改费率
let res = await changeTradingFee(pair, user_id, maker_fee, taker_fee);
let res = await changeTradingFee(pair, user_id, maker_fee, taker_fee, "spot");
return res.is_success;
};
......@@ -194,7 +194,7 @@ export const changeUserContractFee = async function (user_id, symbol, fee_model,
await sleep(1000);
//请求撮合 修改费率
let res = await changeTradingFee(pair, user_id, maker_fee, taker_fee);
let res = await changeTradingFee(pair, user_id, maker_fee, taker_fee, "lpc");
return res.is_success;
};
......
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