第三方api接口
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platform.go 1.1 KiB

1年前
12345678910111213141516171819202122232425262728293031323334353637383940
  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. }