作者 刘锟

update

@@ -312,7 +312,7 @@ class ProjectUpdate extends Command @@ -312,7 +312,7 @@ class ProjectUpdate extends Command
312 } 312 }
313 313
314 //关联分类 314 //关联分类
315 - if($category_arr){ 315 + if ($category_arr) {
316 CategoryRelated::saveRelated($id, array_column($category_arr, 'id')); 316 CategoryRelated::saveRelated($id, array_column($category_arr, 'id'));
317 } 317 }
318 318
@@ -689,7 +689,7 @@ class ProjectUpdate extends Command @@ -689,7 +689,7 @@ class ProjectUpdate extends Command
689 $host = $arr['host'] ?? ''; 689 $host = $arr['host'] ?? '';
690 $path = $arr['path'] ?? ''; 690 $path = $arr['path'] ?? '';
691 691
692 - $url_complete = ($scheme ?: 'https') . '://' . ($host ?: $domain) . $path; 692 + $url_complete = ($scheme ?: 'https') . '://' . $domain . $path;
693 693
694 if ( 694 if (
695 (empty($scheme) || $scheme == 'https' || $scheme == 'http') 695 (empty($scheme) || $scheme == 'https' || $scheme == 'http')