Authored by 陈峰

生产环境替换https

... ... @@ -2,7 +2,7 @@
export default {
dev: {
historyMode: 'history',
shopsFeDomain: 'http://shop-manage.yohobuy.com/oldshops',
shopsFeDomain: '//shop-manage.yohobuy.com/oldshops',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
... ... @@ -12,7 +12,7 @@ export default {
},
production: {
historyMode: 'history',
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops',
shopsFeDomain: '//shopmanage.yohobuy.com/oldshops',
axiosBaseUrl: '/Api',
axiosResponseType: 'json',
homePage: 'home.overview',
... ...
... ... @@ -122,16 +122,16 @@ class UserController extends Context {
}
config(req, res) {
let config = {
shopsFeDomain: 'http://shop-manage.yohobuy.com/oldshops'
shopsFeDomain: '//shop-manage.yohobuy.com/oldshops'
};
if (global.env.Gray) {
Object.assign(config, {
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops'
shopsFeDomain: '//shopmanage.yohobuy.com/oldshops'
});
} else if (global.env.Production) {
Object.assign(config, {
shopsFeDomain: 'http://shopmanage.yohobuy.com/oldshops'
shopsFeDomain: '//shopmanage.yohobuy.com/oldshops'
});
}
res.json(config);
... ...