Commit e7e35514 by 姜雷

修改正式环境配置

parent 5849cd5f
...@@ -52,16 +52,16 @@ var fetch = function (req) { ...@@ -52,16 +52,16 @@ var fetch = function (req) {
}); });
}; };
exports.systemFetch = function (req) { exports.systemFetch = function (req) {
return fetch(__assign({}, req, { url: constants_1.devUrl.SYSTEM_SERVER_URL + req.url })); return fetch(__assign({}, req, { url: constants_1.masterUrl.SYSTEM_SERVER_URL + req.url }));
}; };
exports.statisticsFetch = function (req) { exports.statisticsFetch = function (req) {
return fetch(__assign({}, req, { url: constants_1.devUrl.STATISTICS_SERVER_URL + req.url })); return fetch(__assign({}, req, { url: constants_1.masterUrl.STATISTICS_SERVER_URL + req.url }));
}; };
exports.customerFetch = function (req) { exports.customerFetch = function (req) {
return fetch(__assign({}, req, { url: constants_1.devUrl.CUSTOMER_SERVER_URL + req.url })); return fetch(__assign({}, req, { url: constants_1.masterUrl.CUSTOMER_SERVER_URL + req.url }));
}; };
exports.baseFetch = function (req) { exports.baseFetch = function (req) {
return fetch(__assign({}, req, { url: constants_1.devUrl.BASE_SERVER_URL + req.url })); return fetch(__assign({}, req, { url: constants_1.masterUrl.BASE_SERVER_URL + req.url }));
}; };
exports.default = fetch; exports.default = fetch;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmV0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmZXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaURBQXFFO0FBRXJFLElBQU0sR0FBRyxHQUFHLE1BQU0sRUFBVSxDQUFDO0FBRTdCLElBQU0sS0FBSyxHQUFHLFVBQUMsR0FBcUI7SUFDbEMsT0FBQSxJQUFJLE9BQU8sQ0FBQyxVQUFDLE9BQU8sRUFBRSxNQUFNO1FBQzFCLElBQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxVQUFVLENBQUMsS0FBSyxDQUF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mV4cG9ydCBkZWZhdWx0IGZldGNoO1xuIl19
\ No newline at end of file \ No newline at end of file
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