"use strict"; const common_vendor = require("../../common/vendor.js"); const service_base_index = require("../../service/base/index.js"); const useAppStatus = async () => { const { fixedAppjsGlobalData } = common_vendor.index.getStorageSync("frontEndConfig"); const { status, content } = await service_base_index.GetAppStatus({ appId: fixedAppjsGlobalData == null ? void 0 : fixedAppjsGlobalData.appId }); switch (status) { case "maintain": common_vendor.index.reLaunch({ url: `/pages/st1/business/errorPage/maintain/maintain?content=${content}` }); break; case "offline": common_vendor.index.reLaunch({ url: "/pages/st1/business/errorPage/offline/offline" }); break; } }; exports.useAppStatus = useAppStatus; //# sourceMappingURL=../../../.sourcemap/mp-alipay/hook/use-app-status/index.js.map