Commit e153ebda authored by kingweight's avatar kingweight

更新测试环境cdn

parent e095d7cc
...@@ -174,7 +174,9 @@ export class UploadVideoComponent implements OnChanges, OnDestroy, OnInit { ...@@ -174,7 +174,9 @@ export class UploadVideoComponent implements OnChanges, OnDestroy, OnInit {
customReq(item: UploadXHRArgs) { customReq(item: UploadXHRArgs) {
// md5值计算 // md5值计算
const protocolStr = document.location.protocol; const protocolStr = document.location.protocol;
const baseCDN = `${protocolStr}//teach.cdn.ireadabc.com`; const CDN_HOST = (window.location.host.includes('staging') || window.location.host.includes('localhost')) ? 'staging-teach.cdn.ireadabc.com' : 'teach.cdn.ireadabc.com';
const baseCDN = `${protocolStr}//${CDN_HOST}`;
console.log(`=============baseCDN==============`,baseCDN);
const baseAPI = `${protocolStr}//openapi.iteachabc.com`; const baseAPI = `${protocolStr}//openapi.iteachabc.com`;
const fileName = v4().replace(/-/g, ""); const fileName = v4().replace(/-/g, "");
......
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