fix: 认证策略是先充值后实名, 首页入口
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m11s
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m11s
This commit is contained in:
@@ -27,6 +27,15 @@ export const isAssetRealNameCompleted = (assetInfo = {}) => {
|
||||
return Number(assetInfo.real_name_status) === 1;
|
||||
};
|
||||
|
||||
export const hasActiveOrPendingPackage = async (identifier) => {
|
||||
const [pendingData, activeData] = await Promise.all([
|
||||
assetApi.getPackageHistory(identifier, 1, 1, { status: 0 }),
|
||||
assetApi.getPackageHistory(identifier, 1, 1, { status: 1 })
|
||||
]);
|
||||
|
||||
return [pendingData, activeData].some(data => Array.isArray(data?.items) && data.items.length > 0);
|
||||
};
|
||||
|
||||
export const assetApi = {
|
||||
getInfo(identifier) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user