This commit is contained in:
clay 2022-01-25 22:31:42 +08:00
parent 575300a4cf
commit 1d70fefc93
3 changed files with 31 additions and 31 deletions

View File

@ -1,17 +1,17 @@
window.app = {
/* 开发环境 */
// serverUrl: "http://localhost:8088", // 接口服务接口地址
// paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址
// shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址
// centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址
// cookieDomain: "", // cookie 域
serverUrl: "http://localhost:8088", // 接口服务接口地址
paymentServerUrl: "http://192.168.1.3:8089", // 支付中心服务地址
shopServerUrl: "http://localhost:8080/foodie-shop/", // 门户网站地址
centerServerUrl: "http://localhost:8080/foodie-center/", // 用户中心地址
cookieDomain: "", // cookie 域
/* 生产环境 */
serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址
paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址
shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址
centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址
cookieDomain: ".z.mukewang.com;", // cookie 域
//serverUrl: "http://api.z.mukewang.com:8088/foodie-dev-api", // 接口服务接口地址
//paymentServerUrl: "http://payment.t.mukewang.com/foodie-payment", // 支付中心服务地址
//shopServerUrl: "http://shop.z.mukewang.com:8080/foodie-shop/", // 门户网站地址
//centerServerUrl: "http://center.z.mukewang.com:8080/foodie-center/", // 用户中心地址
//cookieDomain: ".z.mukewang.com;", // cookie 域
ctx: "/foodie-shop",

View File

@ -181,14 +181,14 @@
if (res.data.status == 200) {
var user = res.data;
// console.log(user);
// window.location.href = app.ctx + "/index.html";
window.location.href = app.ctx + "/index.html";
//window.location.href = "index.html";
if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
window.location.href = returnUrl;
} else {
window.location.href = "index.html";
}
//if (returnUrl != null && returnUrl != undefined && returnUrl != '') {
// window.location.href = returnUrl;
//} else {
// window.location.href = "index.html";
//}
} else if (res.data.status == 500) {
alert(res.data.msg);