正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -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 = ''; |
-
请 注册 或 登录 后发表评论