|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Api; |
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Services\ProjectServer;
|
|
|
|
use App\Utils\LogUtils;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Arr;
|
|
|
|
|
|
...
|
...
|
@@ -36,6 +37,7 @@ class ProductController extends BaseController |
|
|
|
return getImageUrl($item, $project['storage_type'], $project['project_location']);
|
|
|
|
}, Arr::pluck($gallery, 'url'));
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
LogUtils::error('Project Id: ' . $project_id . ' getProductImages error:' . $e->getMessage());
|
|
|
|
$gallery = [];
|
|
|
|
}
|
|
|
|
$this->response('success', Code::SUCCESS, $gallery);
|
...
|
...
|
|