45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
// #ifdef MP-ALIPAY
|
||
const APP_ID = '123019';
|
||
// const APP_ID = '12317';
|
||
// #endif
|
||
// #ifdef MP-WEIXIN
|
||
const APP_ID = '123018';
|
||
// const APP_ID = '12316';
|
||
// #endif
|
||
// #ifndef MP-WEIXIN
|
||
// #ifndef MP-ALIPAY
|
||
const APP_ID = '123018';
|
||
// const APP_ID = '12316';
|
||
// #endif
|
||
// #endif
|
||
|
||
export const APP_CONFIG = {
|
||
API_BASE_URL: 'https://dev.api.leapy.cn',
|
||
APP_ID,
|
||
RESOURCE_URL: 'https://resource.leapy.cn/staff/',
|
||
PROPERTY_IMG_URL: 'https://resource.leapy.cn/',
|
||
STORAGE_TOKEN_KEY: 'cashier:auth:token',
|
||
// 小程序代码可被反编译,密钥仅用于避免 token 明文落盘,不替代服务端的有效期与失效策略。
|
||
STORAGE_ENCRYPTION_KEY: 'cashier-storage-key-v1-32'
|
||
} as const;
|
||
|
||
export const PROPERTY_APP = {
|
||
APP_ID: 'wx42076f086669c49e',
|
||
/** 物业微信小程序对外名称,支付宝端引导复制用 */
|
||
WECHAT_NAME: '乐享云空间服务',
|
||
/** 物业支付宝小程序 appId,配置后支付宝端可跳转 */
|
||
ALIPAY_APP_ID: '',
|
||
BIND_HOUSE_PATH: 'pagesC/certification/index?from=cashier',
|
||
MINE_PATH: 'pages/mine/mine',
|
||
/** 物业抵扣金页(微信端入口) */
|
||
POINTS_PATH: 'pagesE/points/index',
|
||
WECHAT_APP_ID: 'wx02de0e1de9f4bda3'
|
||
} as const;
|
||
|
||
export const DEFAULT_MERCHANT = {
|
||
id: '',
|
||
name: '上海大观园',
|
||
background: 'https://dev.api.leapy.cn/upload/202606/26/e3ce560c144a106fa6e41af2118bc208.jpg',
|
||
accumulationRate: 0
|
||
} as const;
|