作者 刘锟

update

@@ -137,6 +137,7 @@ class ProjectUpdate extends Command @@ -137,6 +137,7 @@ class ProjectUpdate extends Command
137 137
138 //设置数据库 138 //设置数据库
139 $project = ProjectServer::useProject($project_id); 139 $project = ProjectServer::useProject($project_id);
  140 + $thumb_w = $project_info->deploy_build->thumb_w ?? 0;//缩略图压缩宽度
140 if ($project) { 141 if ($project) {
141 if ($api_type == 'category') { 142 if ($api_type == 'category') {
142 //产品分类 143 //产品分类
@@ -334,9 +335,9 @@ class ProjectUpdate extends Command @@ -334,9 +335,9 @@ class ProjectUpdate extends Command
334 } 335 }
335 //缩略图 336 //缩略图
336 $thumb = $gallery[0] ?? []; 337 $thumb = $gallery[0] ?? [];
337 - if(isset($thumb['url']) && $thumb['url']){ 338 + if (isset($thumb['url']) && $thumb['url']) {
338 //生成缩略图 339 //生成缩略图
339 - $thumb['url'] = thumbImageByUrl($thumb['url']); 340 + $thumb['url'] = thumbImageByUrl($thumb['url'], $thumb_w);
340 } 341 }
341 //关键词 342 //关键词
342 $keyword_id = ''; 343 $keyword_id = '';