Commit e7e35514 by 姜雷

修改正式环境配置

parent 5849cd5f
import { devUrl, successCode, logoutode } from '../config/constants'; import { successCode, logoutode, masterUrl } from '../config/constants';
import { IMyApp } from '../app'; import { IMyApp } from '../app';
const app = getApp<IMyApp>(); const app = getApp<IMyApp>();
...@@ -43,11 +43,11 @@ const fetch = (req: wx.RequestOption) => ...@@ -43,11 +43,11 @@ const fetch = (req: wx.RequestOption) =>
}); });
export const systemFetch = (req: wx.RequestOption) => export const systemFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: devUrl.SYSTEM_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.SYSTEM_SERVER_URL + req.url });
export const statisticsFetch = (req: wx.RequestOption) => export const statisticsFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: devUrl.STATISTICS_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.STATISTICS_SERVER_URL + req.url });
export const customerFetch = (req: wx.RequestOption) => export const customerFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: devUrl.CUSTOMER_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.CUSTOMER_SERVER_URL + req.url });
export const baseFetch = (req: wx.RequestOption) => export const baseFetch = (req: wx.RequestOption) =>
fetch({ ...req, url: devUrl.BASE_SERVER_URL + req.url }); fetch({ ...req, url: masterUrl.BASE_SERVER_URL + req.url });
export default fetch; export default fetch;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment