WxConfig.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.happy.common.wx;
  2. import org.springframework.stereotype.Component;
  3. import java.util.HashMap;
  4. /**
  5. * 微信公众号开发配置类
  6. * @author lujunjie
  7. * @date 2018/03/01
  8. */
  9. @Component
  10. public class WxConfig {
  11. /**
  12. * 开发者ID
  13. */
  14. public static String apicode = "CS0001";
  15. /**
  16. * 商户号
  17. */
  18. public static String apikey = "XMZnRsZe61hEXyYa7JuAtUupJZ2Q5byc";
  19. /**
  20. * 统一下单-通知链接
  21. */
  22. public static String unifiedorderNotifyUrl = "https://app.dev.9kbs.com/";
  23. /**
  24. * 连接超时时间
  25. */
  26. public static Integer connectionTimeout = 15000;
  27. /**
  28. * 连接超时时间
  29. */
  30. public static Integer readTimeout = 15000;
  31. //支付map缓存处理
  32. private static HashMap<String,String> payMap = new HashMap<String,String>();
  33. public static String getPayMap(String key) {
  34. return payMap.get(key);
  35. }
  36. public static void setPayMap(String key,String value) {
  37. payMap.put(key,value);
  38. }
  39. }