Commit f165629c authored by neo's avatar neo

[DEV] from key word is not allowded ,so close but should be open future

parent d9dd5d31
......@@ -168,12 +168,12 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
}
cfg.isWebApiRequest = true;
if (config && config.dbName) {
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
if (config && config.dbName) {//TODO:from is not allowed ,future should open (neo)
// cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
}
else {
if (vatSessionService.project && vatSessionService.project.dbName) {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
}
}
return cfg;
......@@ -189,10 +189,10 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg.isWebApiRequest = true;
if (config && config.dbName) {
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
}
else {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
}
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
......
......@@ -4600,12 +4600,12 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
}
cfg.isWebApiRequest = true;
if (config && config.dbName) {
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
if (config && config.dbName) {//TODO:from is not allowed ,future should open (neo)
// cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
}
else {
if (vatSessionService.project && vatSessionService.project.dbName) {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
}
}
return cfg;
......@@ -4621,10 +4621,10 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg.isWebApiRequest = true;
if (config && config.dbName) {
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
}
else {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
// cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
}
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
......
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