api.js 971 B

123456789101112131415161718192021222324252627
  1. // 生产环境接口地址
  2. const API_BASE = "https://app.hainanruiyu.cn/api/wxxyx";
  3. const REPORT_API_BASE = "https://tj.hainanruiyu.cn/api";
  4. const WX_API_BASE = "https://app.hainanruiyu.cn/api";
  5. // const IPV4_API_BASE = 'https://getipaddrv4.test.com'
  6. // const IPV6_API_BASE = 'https://getipaddrv6.test.com'
  7. //广告暂时废弃,后端传
  8. // const AD_BASE = 'https://adnotify.test.com/mvc/web/index.php'
  9. const apiConfig = {
  10. COMMON: `${API_BASE}/index.php`,
  11. IOS_REPORT: `${REPORT_API_BASE}/userinfo.php`,
  12. ANDROID_REPORT: `${REPORT_API_BASE}/userinfo.php`,
  13. WX_API: `${WX_API_BASE}/wxxyx/index.php`,
  14. AD_REPORT: "",
  15. IPV4: "",
  16. IPV6: "",
  17. // COMMON: `${API_BASE}/index.php`,
  18. // IOS_REPORT: `${REPORT_API_BASE}/pgIns.php`,
  19. // ANDROID_REPORT: `${REPORT_API_BASE}/andUserInfo.php`,
  20. // AD_REPORT: `${AD_BASE}?r=mimigame/ad-init-log`,
  21. // IPV4: `${IPV4_API_BASE}/mpsw/getIp.php`,
  22. // IPV6: `${IPV6_API_BASE}/mpsw/getIp.php`,
  23. };
  24. export default apiConfig;