weapp.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. 'use strict';
  2. const baseUrl = 'https://api.weixin.qq.com/sns/';
  3. const AppID = 'wx0264954f9ec1ed5a';
  4. const AppSecret = 'ff67eb4bc4f8d61d0507a75f97711e8c';
  5. const jwtSecret = '.wxapp_jwt_#*%)@!2nf874';
  6. const accessTokenExpiresIn = '2h'; // 业务token
  7. const refreshTokenExpiresIn = '7d'; // 续签token
  8. const redisExpire = 7 * 24 * 3600; // Redis 7天
  9. // 变更令相关映射
  10. const changeMap = {
  11. change: {
  12. service: 'change',
  13. auditService: 'changeAudit',
  14. idKey: 'cid',
  15. pageShowKey: '',
  16. },
  17. changePlan: {
  18. service: 'changePlan',
  19. auditService: 'changePlanAudit',
  20. idKey: 'id',
  21. pageShowKey: 'openChangePlan',
  22. },
  23. changeApply: {
  24. service: 'changeApply',
  25. auditService: 'changeApplyAudit',
  26. idKey: 'id',
  27. pageShowKey: 'openChangeApply',
  28. },
  29. changeProject: {
  30. service: 'changeProject',
  31. auditService: 'changeProjectAudit',
  32. idKey: 'id',
  33. pageShowKey: 'openChangeProject',
  34. },
  35. };
  36. module.exports = {
  37. baseUrl,
  38. AppID,
  39. AppSecret,
  40. jwtSecret,
  41. accessTokenExpiresIn,
  42. refreshTokenExpiresIn,
  43. redisExpire,
  44. changeMap,
  45. };