1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- const env = wx.getAccountInfoSync().miniProgram;
- let baseUrl = "http://8.136.199.33:8500/api",
- pcUrl,
- reportLinkUrl,
- intemalLinkUrl,
- reportStrategyUrl,
- ficcReport;
- if (env.envVersion === "develop") {
-
- baseUrl = "http://8.136.199.33:8500/api";
- pcUrl = "https://cygxpctest.hzinsights.com/cygx_pc";
- reportLinkUrl = "http://xcxh5test.hzinsights.com/xcx_h5/raiReportDtl";
- intemalLinkUrl = "http://xcxh5test.hzinsights.com/xcx_h5/internalDetials";
- reportStrategyUrl = "http://xcxh5test.hzinsights.com/xcx_h5/strategyReport";
- ficcReport = "http://xcxh5test.hzinsights.com/xcx_h5/ficcReportDtl";
- } else if (env.envVersion === "trial") {
-
- baseUrl = "http://8.136.199.33:8500/api";
-
- pcUrl = "https://cygxpctest.hzinsights.com/cygx_pc";
-
- reportLinkUrl = "http://xcxh5test.hzinsights.com/xcx_h5/raiReportDtl";
-
- intemalLinkUrl = "http://xcxh5test.hzinsights.com/xcx_h5/internalDetials";
- reportStrategyUrl = "http://xcxh5test.hzinsights.com/xcx_h5/strategyReport";
-
- ficcReport = "http://xcxh5test.hzinsights.com/xcx_h5/ficcReportDtl";
- } else if (env.envVersion === "release") {
-
- baseUrl = "https://cygx.hzinsights.com/api";
- pcUrl = "https://cygxpc.hzinsights.com/cygx_pc";
- reportLinkUrl = "https://details.hzinsights.com/raiReportDtl";
- intemalLinkUrl = "https://details.hzinsights.com/internalDetials";
- reportStrategyUrl = "https://details.hzinsights.com/strategyReport";
- ficcReport = "https://details.hzinsights.com/ficcReportDtl";
- }
- module.exports = {
- baseUrl,
- pcUrl,
- reportLinkUrl,
- reportStrategyUrl,
- intemalLinkUrl,
- ficcReport,
- };
|