第三方api接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

  1. package md
  2. const (
  3. /*********** DEVICE ***********/
  4. PLATFORM_WX_APPLET = "wx_applet" // 小程序
  5. PLATFORM_TOUTIAO_APPLET = "toutiao_applet"
  6. PLATFORM_TIKTOK_APPLET = "tiktok_applet"
  7. PLATFORM_BAIDU_APPLET = "baidu_applet"
  8. PLATFORM_ALIPAY_APPLET = "alipay_applet"
  9. PLATFORM_WAP = "wap" //h5
  10. PLATFORM_ANDROID = "android"
  11. PLATFORM_IOS = "ios"
  12. PLATFORM_PC = "pc"
  13. PLATFORM_JSAPI = "jsapi" // 公众号
  14. )
  15. const WX_PAY_BROWSER = "wx_pay_browser" // 用于判断显示支付方式
  16. var PlatformList = map[string]struct{}{
  17. PLATFORM_WX_APPLET: {},
  18. PLATFORM_TOUTIAO_APPLET: {},
  19. PLATFORM_TIKTOK_APPLET: {},
  20. PLATFORM_BAIDU_APPLET: {},
  21. PLATFORM_ALIPAY_APPLET: {},
  22. PLATFORM_WAP: {},
  23. PLATFORM_ANDROID: {},
  24. PLATFORM_IOS: {},
  25. PLATFORM_PC: {},
  26. }
  27. var PlatformMap = map[string]string{
  28. "android": "2",
  29. "ios": "2",
  30. "wap": "4", // 和小程序公用模板
  31. "wx_applet": "4", //微信小程序
  32. "tiktok_applet": "4",
  33. "baidu_applet": "4",
  34. "alipay_applet": "4",
  35. "toutiao_applet": "4",
  36. }