| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 'use strict';
- const baseUrl = 'https://api.weixin.qq.com/sns/';
- const AppID = 'wx0264954f9ec1ed5a';
- const AppSecret = 'ff67eb4bc4f8d61d0507a75f97711e8c';
- const jwtSecret = '.wxapp_jwt_#*%)@!2nf874';
- const accessTokenExpiresIn = '2h'; // 业务token
- const refreshTokenExpiresIn = '7d'; // 续签token
- const redisExpire = 7 * 24 * 3600; // Redis 7天
- // 变更令相关映射
- const changeMap = {
- change: {
- service: 'change',
- auditService: 'changeAudit',
- idKey: 'cid',
- pageShowKey: '',
- },
- changePlan: {
- service: 'changePlan',
- auditService: 'changePlanAudit',
- idKey: 'id',
- pageShowKey: 'openChangePlan',
- },
- changeApply: {
- service: 'changeApply',
- auditService: 'changeApplyAudit',
- idKey: 'id',
- pageShowKey: 'openChangeApply',
- },
- changeProject: {
- service: 'changeProject',
- auditService: 'changeProjectAudit',
- idKey: 'id',
- pageShowKey: 'openChangeProject',
- },
- };
- module.exports = {
- baseUrl,
- AppID,
- AppSecret,
- jwtSecret,
- accessTokenExpiresIn,
- refreshTokenExpiresIn,
- redisExpire,
- changeMap,
- };
|