Commit 69a5da57 authored by ml's avatar ml

金融部-账户管理相关修改

parent f0a990c7
......@@ -146,10 +146,27 @@ export const initAssetList = async (req: any, pageVO: FinanceAccountPageVO) => {
};
async function paramValid(financeAccountVO: FinanceAccountVO) {
if (!financeAccountVO.category_id || !financeAccountVO.account || !financeAccountVO.apikey ||
!financeAccountVO.secret || !financeAccountVO.pwd ||
if (!financeAccountVO.category_id || !financeAccountVO.account ||
!financeAccountVO.platform) {
throw ErrorCode.PARAM_MISS;
}
if (financeAccountVO.platform == 1) {//KTX
if (!financeAccountVO.uid) {
throw ErrorCode.PARAM_MISS;
}
}
else if (financeAccountVO.platform == 2) {//币安
if (!financeAccountVO.apikey || !financeAccountVO.secret) {
throw ErrorCode.PARAM_MISS;
}
}
else if (financeAccountVO.platform == 3) {
if (!financeAccountVO.apikey || !financeAccountVO.secret || !financeAccountVO.pwd) {
throw ErrorCode.PARAM_MISS;
}
}
else {
throw ErrorCode.PARAM_MISS;
}
}
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