(function () { 'use strict'; var productScriptURL = document.currentScript && document.currentScript.src ? document.currentScript.src : window.location.href; if (!window.HyGuild || !window.HyGuild.product) { throw new Error('Guild product context must load before Fami'); } // 产品清单是 Fami 页面唯一的租户默认值来源;功能默认全开,权限是否可用仍以后端 capability 为准。 window.HyGuild.product.define({ key: 'fami', appCode: 'fami', languages: ['en', 'ar', 'tr', 'es'], features: { hostCenter: true, agencyCenter: true, bdCenter: true, wallet: true, coinSellerWithdraw: true, usdtWithdraw: true, }, }); // 产品语言包和 common/locales 分开发布,后续新增品牌无需把整套页面文案塞回全站公共 JSON。 window.HyAppI18nExtraSources = window.HyAppI18nExtraSources || []; window.HyAppI18nExtraSources.push( new URL('locales/', productScriptURL).toString() ); })();