import _ from 'lodash'; /** * | 敏感度 | 描述 | | --- | | 0级:不敏感,任何人都有权限 | | 1级:稍微敏感,大部分人可有权限 | | 2级:敏感 ,只能有限的人有权限 | | 3级:很敏感,需限制人员权限,需定期审计 | | 4级:极度敏感,不可随意加权限,限制权限授予,审计严格,变更动态需实时监控。 | */ export const DataSensitive = (formatMessage) => [ { value: 0, label: formatMessage({ id: 'public.const.DataSensitive.0.label' }), describe: formatMessage({ id: 'public.const.DataSensitive.0.describe' }), }, { value: 1, label: formatMessage({ id: 'public.const.DataSensitive.1.label' }), describe: formatMessage({ id: 'public.const.DataSensitive.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.DataSensitive.2.label' }), describe: formatMessage({ id: 'public.const.DataSensitive.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.DataSensitive.3.label' }), describe: formatMessage({ id: 'public.const.DataSensitive.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.DataSensitive.4.label' }), describe: formatMessage({ id: 'public.const.DataSensitive.4.describe' }), }, ]; export const DataSensitiveMap = (formatMessage) => _.keyBy( DataSensitive(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); /** * | 数据敏感等级 | 描述 | | --- | | 不涉及:权限与数据无关。 | C1:外部可公开数据。无利用价值,重要程度一般,公开数据,可对外使用。范例:广告、文宣、推广、报道。 | | C2:限制在业务系统内使用数据。限制数据,被利用价值低,数据敏感,仅公司内部可使用。范例:业务点击量统计、业务距离信息、业务 ID 类信息。 | | C3:限制在业务系统内加密存储、加密传输、限制输出数据。商业秘密数据,中介可间接/直接利用数据,数据重要,仅公司内部相关人员使用。范例:用户姓名及性别、用户数信息、订单统计信息。 | | C4:加密存储、加密传输、限于在特定业务场景下使用。核心秘密数据,高价值可直接利用,需加密存储、加密传输、限于在特定业务场景下使用。范例:敏感个人信息(人脸信息、轨迹数据、犯罪记录)、重要数据(地图数据、中国城市货运发展指数、车外人脸信息及车牌信息)、公司财务信息。 | */ export const DataSensitiveLevel = (formatMessage) => [ { value: 0, label: formatMessage({ id: 'public.const.DataSensitiveLevel.0.label' }), describe: formatMessage({ id: 'public.const.DataSensitiveLevel.0.describe' }), }, { value: 1, label: formatMessage({ id: 'public.const.DataSensitiveLevel.1.label' }), describe: formatMessage({ id: 'public.const.DataSensitiveLevel.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.DataSensitiveLevel.2.label' }), describe: formatMessage({ id: 'public.const.DataSensitiveLevel.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.DataSensitiveLevel.3.label' }), describe: formatMessage({ id: 'public.const.DataSensitiveLevel.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.DataSensitiveLevel.4.label' }), describe: formatMessage({ id: 'public.const.DataSensitiveLevel.4.describe' }), }, ]; export const DataSensitiveLevelMap = (formatMessage) => _.keyBy( DataSensitiveLevel(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); /** * | 功能类型 | 描述 | * | --- | * | 菜单 | * | 按钮 | * | 报表 | * | 其他 | */ export const FeatureType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.FeatureType.1.label' }), describe: formatMessage({ id: 'public.const.FeatureType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.FeatureType.2.label' }), describe: formatMessage({ id: 'public.const.FeatureType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.FeatureType.3.label' }), describe: formatMessage({ id: 'public.const.FeatureType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.FeatureType.4.label' }), describe: formatMessage({ id: 'public.const.FeatureType.4.describe' }), }, ]; export const FeatureTypeMap = (formatMessage) => _.keyBy( FeatureType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); // 角色授权类型:1本人,2本人及下属,3本部门,4本部门及下级部门,5全部 export const extendRoleType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.extendRoleType.1.label' }), describe: formatMessage({ id: 'public.const.extendRoleType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.extendRoleType.2.label' }), describe: formatMessage({ id: 'public.const.extendRoleType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.extendRoleType.3.label' }), describe: formatMessage({ id: 'public.const.extendRoleType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.extendRoleType.4.label' }), describe: formatMessage({ id: 'public.const.extendRoleType.4.describe' }), }, { value: 5, label: formatMessage({ id: 'public.const.extendRoleType.5.label' }), describe: formatMessage({ id: 'public.const.extendRoleType.5.describe' }), }, ]; /** * | 状态 | 描述 | * | --- | * | 是 | * | 否 | */ export const Status = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.Status.1.label' }), describe: formatMessage({ id: 'public.const.Status.1.describe' }), status: 'Success', }, { value: 0, label: formatMessage({ id: 'public.const.Status.0.label' }), describe: formatMessage({ id: 'public.const.Status.0.describe' }), status: 'Error', }, ]; export const StatusMap = (formatMessage) => _.keyBy( Status(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label, status: sen.status, })), 'value', ); // 申请数据权限时,使用所选角色权限的审批流 export const ApprovalPolicy = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.ApprovalPolicy.1.label' }), describe: formatMessage({ id: 'public.const.ApprovalPolicy.1.describe' }), status: 'Error', }, { value: 2, label: formatMessage({ id: 'public.const.ApprovalPolicy.2.label' }), describe: formatMessage({ id: 'public.const.ApprovalPolicy.2.describe' }), status: 'Success', }, ]; // 申请人和审批人相同时 export const CreateUserAuditPolicy = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.CreateUserAuditPolicy.1.label' }), describe: formatMessage({ id: 'public.const.CreateUserAuditPolicy.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.CreateUserAuditPolicy.2.label' }), describe: formatMessage({ id: 'public.const.CreateUserAuditPolicy.2.describe' }), }, ]; // 审批流中审批人重复出现 // duplicationApprovalPolicy export const DuplicationApprovalPolicy = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.1.label' }), describe: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.2.label' }), describe: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.3.label' }), describe: formatMessage({ id: 'public.const.DuplicationApprovalPolicy.3.describe' }), }, ]; // 审批完成 // 1 // 待审批 // 2 // 审批被驳回 // 3 // 用户主动取消 // 4 // 审批被删除 // 5 /** * | 审批状态 | 描述 | * | --- | * | 1 | 审批完成 * | 2 | 待审批 * | 3 | 审批被驳回 * | 4 | 用户主动取消 * | 5 | 审批被删除 */ export const ApprovalStatus = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.ApprovalStatus.1.label' }), describe: formatMessage({ id: 'public.const.ApprovalStatus.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.ApprovalStatus.2.label' }), describe: formatMessage({ id: 'public.const.ApprovalStatus.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.ApprovalStatus.3.label' }), describe: formatMessage({ id: 'public.const.ApprovalStatus.3.describe' }), }, // { // value: 4, // label: formatMessage({id: 'public.const.ApprovalStatus.4.label'}), // describe: formatMessage({id: 'public.const.ApprovalStatus.4.describe'}), // }, // { // value: 5, // label: formatMessage({id: 'public.const.ApprovalStatus.5.label'}), // describe: formatMessage({id: 'public.const.ApprovalStatus.5.describe'}), // }, ]; export const ApprovalStatusMap = (formatMessage) => _.keyBy( ApprovalStatus(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); export const AppApplyRangeType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.AppApplyRangeType.1.label' }), describe: formatMessage({ id: 'public.const.AppApplyRangeType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.AppApplyRangeType.2.label' }), describe: formatMessage({ id: 'public.const.AppApplyRangeType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.AppApplyRangeType.3.label' }), describe: formatMessage({ id: 'public.const.AppApplyRangeType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.AppApplyRangeType.4.label' }), describe: formatMessage({ id: 'public.const.AppApplyRangeType.4.describe' }), }, ]; export const AppApplyRangeTypeMap = (formatMessage) => _.keyBy( AppApplyRangeType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); // 操作板块: 1功能权限,2:角色权限,3:数据权限,4:策略权限,5:城市权限 // 6:功能城市 export const BlockType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.BlockType.1.label' }), describe: formatMessage({ id: 'public.const.BlockType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.BlockType.2.label' }), describe: formatMessage({ id: 'public.const.BlockType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.BlockType.3.label' }), describe: formatMessage({ id: 'public.const.BlockType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.BlockType.4.label' }), describe: formatMessage({ id: 'public.const.BlockType.4.describe' }), }, { value: 5, label: formatMessage({ id: 'public.const.BlockType.5.label' }), describe: formatMessage({ id: 'public.const.BlockType.5.describe' }), }, // { // value: 6, // label: formatMessage({ id: 'public.const.BlockType.6.label' }), // describe: formatMessage({ id: 'public.const.BlockType.6.describe' }), // }, ]; export const BlockTypeMap = (formatMessage) => _.keyBy( BlockType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); // 操作板块: 1功能权限,2:角色权限,3:标识位 4:标识位属性,5:策略权限,6:应用内用户 export const PermissionType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.PermissionType.1.label' }), describe: formatMessage({ id: 'public.const.PermissionType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.PermissionType.2.label' }), describe: formatMessage({ id: 'public.const.PermissionType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.PermissionType.3.label' }), describe: formatMessage({ id: 'public.const.PermissionType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.PermissionType.4.label' }), describe: formatMessage({ id: 'public.const.PermissionType.4.describe' }), }, { value: 5, label: formatMessage({ id: 'public.const.PermissionType.5.label' }), describe: formatMessage({ id: 'public.const.PermissionType.5.describe' }), }, { value: 6, label: formatMessage({ id: 'public.const.PermissionType.6.label' }), describe: formatMessage({ id: 'public.const.PermissionType.6.describe' }), }, ]; export const PermissionTypeMap = (formatMessage) => _.keyBy( PermissionType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); // 权限操作类型:1删除,2增加 // 3更新,4导出,5导入,6:权限绑定 export const PermissionKindType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.PermissionKindType.1.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.PermissionKindType.2.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.2.describe' }), }, { value: 3, label: formatMessage({ id: 'public.const.PermissionKindType.3.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.3.describe' }), }, { value: 4, label: formatMessage({ id: 'public.const.PermissionKindType.4.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.4.describe' }), }, { value: 5, label: formatMessage({ id: 'public.const.PermissionKindType.5.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.5.describe' }), }, { value: 6, label: formatMessage({ id: 'public.const.PermissionKindType.6.label' }), describe: formatMessage({ id: 'public.const.PermissionKindType.6.describe' }), }, ]; export const PermissionKindTypeMap = (formatMessage) => _.keyBy( PermissionKindType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); // kind; 0:删除权限,1:增加权限 export const KindType = (formatMessage) => [ { value: 0, label: formatMessage({ id: 'public.const.KindType.0.label' }), describe: formatMessage({ id: 'public.const.KindType.0.describe' }), }, { value: 1, label: formatMessage({ id: 'public.const.KindType.1.label' }), describe: formatMessage({ id: 'public.const.KindType.1.describe' }), }, ]; export const KindTypeMap = (formatMessage) => _.keyBy( KindType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); export const BlockStatus = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.BlockStatus.1.label' }), describe: formatMessage({ id: 'public.const.BlockStatus.1.describe' }), status: 'Success', }, { value: 0, label: formatMessage({ id: 'public.const.BlockStatus.0.label' }), describe: formatMessage({ id: 'public.const.BlockStatus.0.describe' }), status: 'Error', }, ]; export const BlockStatusMap = (formatMessage) => _.keyBy( BlockStatus(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label, status: sen.status, })), 'value', ); /** * | 打开方式 | 描述 | * | --- | * | 当前窗口打开 | * | 新建窗口打开 | */ export const OpenType = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'public.const.OpenType.1.label' }), describe: formatMessage({ id: 'public.const.OpenType.1.describe' }), }, { value: 2, label: formatMessage({ id: 'public.const.OpenType.2.label' }), describe: formatMessage({ id: 'public.const.OpenType.2.describe' }), }, ]; export const OpenTypeMap = (formatMessage) => _.keyBy( OpenType(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); export const State = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'base.common.state.on' }), describe: formatMessage({ id: 'base.common.state.on' }), status: 'Success', }, { value: 0, label: formatMessage({ id: 'base.common.state.off' }), describe: formatMessage({ id: 'base.common.state.off' }), status: 'Error', }, ]; export const StateMap = (formatMessage) => _.keyBy( State(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label, status: sen.status, })), 'value', ); export const AppStateSet = (formatMessage) => [ { value: 0, label: formatMessage({ id: 'base.common.set.disabled' }), describe: formatMessage({ id: 'base.common.set.disabled' }), }, { value: 1, label: formatMessage({ id: 'base.common.set.activated' }), describe: formatMessage({ id: 'base.common.set.activated' }), }, { value: 2, label: formatMessage({ id: 'base.common.set.Inactive' }), describe: formatMessage({ id: 'base.common.set.Inactive' }), }, ]; export const AppStateSetMap = (formatMessage) => _.keyBy( AppStateSet(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); export const FileState = (formatMessage) => [ { value: 1, id: 'feature', label: formatMessage({ id: 'base.common.file.feature' }), }, { value: 2, id: 'role', label: formatMessage({ id: 'base.common.file.role' }), }, { value: 3, id: 'policy', label: formatMessage({ id: 'base.common.file.policy' }), }, { value: 4, id: 'flag', label: formatMessage({ id: 'base.common.file.flag' }), }, ]; export const FileStateMap = (formatMessage) => _.keyBy( FileState(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label, id: sen.id })), 'value', ); export const UploadState = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'base.common.upload.pedding' }), }, { value: 2, label: formatMessage({ id: 'base.common.upload.progress' }), }, { value: 3, label: formatMessage({ id: 'base.common.upload.success' }), }, { value: 4, label: formatMessage({ id: 'base.common.upload.failure' }), }, ]; export const UploadStateMap = (formatMessage) => _.keyBy( UploadState(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label })), 'value', ); export const AuditPermission = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'pages.auditList.from.role.feature' }), }, { value: 2, label: formatMessage({ id: 'pages.auditList.from.policy.feature' }), }, ]; // 0离职 1 在职 export const UserState = (formatMessage) => [ { value: 1, label: formatMessage({ id: 'base.common.user.state.employed' }), }, { value: 0, label: formatMessage({ id: 'base.common.user.state.dimission' }), }, ]; export const AduitStatus = { // 开始 '-1': 'component.AuditProgress.status.begin', '1': 'component.AuditProgress.status.pass', '2': 'component.AuditProgress.status.wait', '3': 'component.AuditProgress.status.reject', '4': 'component.AuditProgress.status.cancel', '5': 'component.AuditProgress.status.delete', }; export const columnsTiltle = { feature: { id: 'public.const.BlockType.1.label', defaultMessage: '功能权限', }, option: { id: 'public.const.BlockType.3.label', defaultMessage: '数据权限', }, policy: { id: 'public.const.BlockType.4.label', defaultMessage: '策略权限', }, role: { id: 'public.const.BlockType.2.label', defaultMessage: '角色权限', }, city: { id: 'public.const.BlockType.6.label', defaultMessage: '功能城市', }, }; export const BpmAduitStatus = { // 开始 Start: 'component.AuditProgress.status.begin', // 未审批 UnApproved: 'component.AuditProgress.status.pass', //已通过 Approved: 'component.AuditProgress.status.wait', //已拒绝 Rejected: 'component.AuditProgress.status.reject', //已被其它人通过 ApprovedByOthers: 'component.AuditProgress.status.cancel', //已被其它人拒绝 RejectedByOthers: 'component.AuditProgress.status.delete', }; /** * 0删除权限 * 1增加权限 */ export const OperateKind = (formatMessage) => [ { value: 0, text: formatMessage({ id: 'page.permission.delete' }), }, { value: 1, text: formatMessage({ id: 'page.permission.add' }), }, ]; export const OperateKindMap = (formatMessage) => _.keyBy( OperateKind(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.text })), 'value', ); export const ApplicationState = (formatMessage) => [ { id: 'pass', value: 1, label: formatMessage({ id: 'pages.application.pass' }), }, { id: 'reviewed', value: 2, label: formatMessage({ id: 'pages.application.reviewed' }), }, { id: 'rejected', value: 3, label: formatMessage({ id: 'pages.application.rejected' }), }, { id: 'revocation', value: 4, label: formatMessage({ id: 'pages.application.revocation' }), }, ]; /** * 0 禁用 1待审批 2通过 3 拒绝 */ export const AppState = (formatMessage) => [ { value: 0, text: formatMessage({ id: 'base.common.set.disabled' }), }, { value: 1, text: formatMessage({ id: 'base.app.approving' }), }, { value: 2, text: formatMessage({ id: 'base.app.pass' }), }, { value: 3, text: formatMessage({ id: 'base.app.reject' }), }, ]; export const AppStateMap = (formatMessage) => _.keyBy( AppState(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.text })), 'value', ); export const ApplicationStateMap = (formatMessage) => _.keyBy( ApplicationState(formatMessage)?.map((sen) => ({ value: sen.value, text: sen.label, id: sen.id, })), 'value', ); export default (formatMessage: ({ id }: { id: string; defaultMessage?: string }) => any) => { return { DataSensitive: DataSensitive(formatMessage), DataSensitiveMap: DataSensitiveMap(formatMessage), DataSensitiveLevel: DataSensitiveLevel(formatMessage), DataSensitiveLevelMap: DataSensitiveLevelMap(formatMessage), Feature: FeatureType(formatMessage), FeatureTypeMap: FeatureTypeMap(formatMessage), extendRoleType: extendRoleType(formatMessage), Status: Status(formatMessage), StatusMap: StatusMap(formatMessage), ApprovalPolicy: ApprovalPolicy(formatMessage), CreateUserAuditPolicy: CreateUserAuditPolicy(formatMessage), DuplicationApprovalPolicy: DuplicationApprovalPolicy(formatMessage), ApprovalStatus: ApprovalStatus(formatMessage), ApprovalStatusMap: ApprovalStatusMap(formatMessage), AppApplyRangeType: AppApplyRangeType(formatMessage), AppApplyRangeTypeMap: AppApplyRangeTypeMap(formatMessage), BlockType: BlockType(formatMessage), BlockTypeMap: BlockTypeMap(formatMessage), PermissionType: PermissionType(formatMessage), PermissionTypeMap: PermissionTypeMap(formatMessage), PermissionKindType: PermissionKindType(formatMessage), PermissionKindTypeMap: PermissionKindTypeMap(formatMessage), KindType: KindType(formatMessage), KindTypeMap: KindTypeMap(formatMessage), BlockStatus: BlockStatus(formatMessage), BlockStatusMap: BlockStatusMap(formatMessage), OpenType: OpenType(formatMessage), OpenTypeMap: OpenTypeMap(formatMessage), UploadStateMap: UploadStateMap(formatMessage), UploadState: UploadState(formatMessage), FileStateMap: FileStateMap(formatMessage), FileState: FileState(formatMessage), AppStateSetMap: AppStateSetMap(formatMessage), AppStateSet: AppStateSet(formatMessage), State: State(formatMessage), StateMap: StateMap(formatMessage), AuditPermission: AuditPermission(formatMessage), UserState: UserState(formatMessage), OperateKind: OperateKind(formatMessage), OperateKindMap: OperateKindMap(formatMessage), ApplicationState: ApplicationState(formatMessage), ApplicationStateMap: ApplicationStateMap(formatMessage), AppStateMap: AppStateMap(formatMessage), AppState: AppState(formatMessage), }; }; export const domainMap = { stg: window?.domainStg, pre: window?.domainPre, prod: window?.domainPrd, }; export const vanManagerDomainMap = { stg: window?.managerDomainStg, pre: window?.managerDomainPre, prod: window?.managerDomainPrd, }; export const oldUacDomainMap = { stg: window?.oldUacDomainStg || 'https://uac-v-stg.huolala.work', pre: window?.oldUacDomainPre || 'https://uac-v-stg.huolala.work', prod: window?.oldUacDomainPrd || 'https://uac.huolala.work', };