You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.1 KiB
58 lines
2.1 KiB
/**
|
|
* 生产环境
|
|
*/
|
|
;(function () {
|
|
window.SITE_CONFIG = {};
|
|
|
|
/**
|
|
* 部署站点:打包前只改此常量 — 从下面两套完整配置中选一套生效 - rqrq
|
|
* 可选值:'苏州' | '国外'
|
|
*/
|
|
var DEPLOY_SITE = '苏州';
|
|
|
|
// 两套完整配置(baseUrl、静态资源、LODOP 授权均可分别填写)- rqrq
|
|
var PRESETS = {
|
|
'苏州': {
|
|
baseUrl: 'http://192.168.2.172:9090',
|
|
printAssetBaseUrl: 'http://192.168.2.172:80/print',
|
|
uploadBaseUrl: 'http://192.168.2.172:80/upload/',
|
|
sopFileBaseUrl: 'http://192.168.2.172:80/sopFile/',
|
|
lodopLicenseStr1: '',
|
|
lodopLicenseStr2: 'AF8A5800B823CC8E18BCF67B925E7BF0',
|
|
lodopLicenseStr3: '',
|
|
lodopLicenseStr4: '',
|
|
siteName: '苏州赫艾聚合科技有限公司',
|
|
siteNameE: 'A&M Polymer'
|
|
},
|
|
'国外': {
|
|
baseUrl: 'http://192.168.1.88:9090',
|
|
printAssetBaseUrl: 'http://192.168.1.88:82/print',
|
|
uploadBaseUrl: 'http://192.168.1.88:82/upload/',
|
|
sopFileBaseUrl: 'http://192.168.1.88:82/sopFile/',
|
|
lodopLicenseStr1: '',
|
|
lodopLicenseStr2: '15F0BE661E7F39FD7491843CB2514F69',
|
|
lodopLicenseStr3: '',
|
|
lodopLicenseStr4: '',
|
|
siteName: 'JCA POLYMER TECHNICS SDN.BHD. ',
|
|
siteNameE: 'JCA Polymer'
|
|
}
|
|
};
|
|
|
|
var cfg = PRESETS[DEPLOY_SITE] || PRESETS['苏州'];
|
|
|
|
window.SITE_CONFIG['baseUrl'] = cfg.baseUrl;
|
|
window.SITE_CONFIG['printAssetBaseUrl'] = cfg.printAssetBaseUrl;
|
|
window.SITE_CONFIG['uploadBaseUrl'] = cfg.uploadBaseUrl;
|
|
window.SITE_CONFIG['sopFileBaseUrl'] = cfg.sopFileBaseUrl;
|
|
window.SITE_CONFIG['lodopLicenseStr1'] = cfg.lodopLicenseStr1;
|
|
window.SITE_CONFIG['lodopLicenseStr2'] = cfg.lodopLicenseStr2;
|
|
window.SITE_CONFIG['lodopLicenseStr3'] = cfg.lodopLicenseStr3;
|
|
window.SITE_CONFIG['lodopLicenseStr4'] = cfg.lodopLicenseStr4;
|
|
window.SITE_CONFIG['siteName'] = cfg.siteName;
|
|
window.SITE_CONFIG['siteNameE'] = cfg.siteNameE;
|
|
|
|
// cdn地址 = 域名 + 版本号
|
|
window.SITE_CONFIG['domain'] = './'; // 域名
|
|
window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
|
|
window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
|
|
})();
|