作者 刘锟

update

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