正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
| @@ -367,6 +367,13 @@ class ProjectUpdate extends Command | @@ -367,6 +367,13 @@ class ProjectUpdate extends Command | ||
| 367 | echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; | 367 | echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL; |
| 368 | continue; | 368 | continue; |
| 369 | } | 369 | } |
| 370 | + }else{ | ||
| 371 | + if (is_array($item['images'])) { | ||
| 372 | + $image = $item['images'][0] ?? ''; | ||
| 373 | + } else { | ||
| 374 | + $image = $item['images'] ?? ''; | ||
| 375 | + } | ||
| 376 | + $model->edit(['image' => $this->source_download($image, $project_id, $domain_arr['host'], $web_url_domain, $home_url)],['id'=>$news['id']]); | ||
| 370 | } | 377 | } |
| 371 | } | 378 | } |
| 372 | } | 379 | } |
-
请 注册 或 登录 后发表评论