v4.0.18版本更新

This commit is contained in:
2026-09-08 13:47:42 +08:00
parent 23ba639e9b
commit 253430b291
14 changed files with 136 additions and 25 deletions
+7
View File
@@ -119,6 +119,13 @@ export function resolveMockSmsFixedCode(env?: Record<string, string | undefined>
return code || MOCK_SMS_FIXED_CODE;
}
/** C 端门店是否展示核销次数(系统设置 SHOW_STORE_REDEEM_COUNT;未配置默认开) */
export function isShowStoreRedeemCountEnabled(env?: Record<string, string | undefined>): boolean {
const raw = (readEnv(env).SHOW_STORE_REDEEM_COUNT ?? '').trim().toLowerCase();
if (!raw) return true;
return raw === 'true' || raw === '1';
}
/** 小程序 / H5 默认分享文案与引导(系统设置「小程序分享配置」可覆盖) */
export const DEFAULT_SHARE_TITLE = '你吃饭,我买单';
export const DEFAULT_SHARE_DESC = '杜康好客 · 买美酒,享好礼,全城门店可用';
+2
View File
@@ -74,6 +74,8 @@ export type ClientRuntimeConfig = {
partnerOnboardCsHint?: string | null;
/** 小程序各场景分享文案/图 */
share?: MiniShareRuntime;
/** C 端门店列表/详情是否展示核销次数;未下发时按开启处理 */
showStoreRedeemCount?: boolean;
};
/** 是否展示微信授权入口 */