qcloud_cos::CosConfig config("./config.json");qcloud_cos::CosAPI cos(config);// 将 examplebucket-1250000000 修改为真实的存储桶名CosSysConfig::SetDomainSameToHost(true);CosSysConfig::SetDestDomain("examplebucket-1250000000.file.myqcloud.com");
"IsDomainSameToHost":true,"DestDomain":"examplebucket-1250000000.file.myqcloud.com",
qcloud_cos::CosConfig config("./config.json");qcloud_cos::CosAPI cos(config);// 将 mycdndomain.com 修改为真实的 CDN 域名CosSysConfig::SetDomainSameToHost(true);CosSysConfig::SetDestDomain("mycdndomain.com");
"IsDomainSameToHost":true,"DestDomain":"emycdndomain.com",
qcloud_cos::CosConfig config("./config.json");qcloud_cos::CosAPI cos(config);// 将 mydomain.com 修改为真实的自定义域名CosSysConfig::SetDomainSameToHost(true);CosSysConfig::SetDestDomain("mydomain.com");
"IsDomainSameToHost":true,"DestDomain":"mydomain.com",
qcloud_cos::CosConfig config("./config.json");config.SetRegion("accelerate")qcloud_cos::CosAPI cos(config);
"Region":"accelerate",
本页内容是否解决了您的问题?