|
...
|
...
|
@@ -872,19 +872,21 @@ class CreatePageService{ |
|
|
|
{
|
|
|
|
$projectLocation = $project->project_location;
|
|
|
|
$storageType = $project->storage_type;
|
|
|
|
$cos = config('filesystems.disks.cos');
|
|
|
|
if ($projectLocation == Project::$projectLocationZero){
|
|
|
|
//普通项目
|
|
|
|
if ($storageType == Project::$storageTypeZero){
|
|
|
|
//压缩项目
|
|
|
|
$html = str_replace(Project::$storageTypeOneFileFix,Project::$storageTypeZeroFileFix,$html);
|
|
|
|
$html = str_replace($cos['cdn1'],$cos['cdn'],$html);
|
|
|
|
}else{
|
|
|
|
//非压缩项目
|
|
|
|
$html = str_replace(Project::$storageTypeZeroFileFix,Project::$storageTypeOneFileFix,$html);
|
|
|
|
$html = str_replace($cos['cdn'],$cos['cdn1'],$html);
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$s3 = config('filesystems.disks.s3');
|
|
|
|
//危险项目
|
|
|
|
$html = str_replace(Project::$storageTypeOneFileFix,Project::$projectLocationDangerousFileFix,$html);
|
|
|
|
$html = str_replace(Project::$storageTypeZeroFileFix,Project::$projectLocationDangerousFileFix,$html);
|
|
|
|
$html = str_replace($cos['cdn1'],$s3['cdn'],$html);
|
|
|
|
$html = str_replace($cos['cdn'],$s3['cdn'],$html);
|
|
|
|
}
|
|
|
|
return $html;
|
|
|
|
}
|
...
|
...
|
|