正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api; | @@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api; | ||
| 5 | use App\Enums\Common\Code; | 5 | use App\Enums\Common\Code; |
| 6 | use App\Models\Product\Product; | 6 | use App\Models\Product\Product; |
| 7 | use App\Services\ProjectServer; | 7 | use App\Services\ProjectServer; |
| 8 | +use App\Utils\LogUtils; | ||
| 8 | use Illuminate\Http\Request; | 9 | use Illuminate\Http\Request; |
| 9 | use Illuminate\Support\Arr; | 10 | use Illuminate\Support\Arr; |
| 10 | 11 | ||
| @@ -36,6 +37,7 @@ class ProductController extends BaseController | @@ -36,6 +37,7 @@ class ProductController extends BaseController | ||
| 36 | return getImageUrl($item, $project['storage_type'], $project['project_location']); | 37 | return getImageUrl($item, $project['storage_type'], $project['project_location']); |
| 37 | }, Arr::pluck($gallery, 'url')); | 38 | }, Arr::pluck($gallery, 'url')); |
| 38 | } catch (\Exception $e) { | 39 | } catch (\Exception $e) { |
| 40 | + LogUtils::error('Project Id: ' . $project_id . ' getProductImages error:' . $e->getMessage()); | ||
| 39 | $gallery = []; | 41 | $gallery = []; |
| 40 | } | 42 | } |
| 41 | $this->response('success', Code::SUCCESS, $gallery); | 43 | $this->response('success', Code::SUCCESS, $gallery); |
-
请 注册 或 登录 后发表评论