diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-30 17:09:49 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-30 17:09:49 +0700 |
| commit | 5ead14749a6be3453c71b0b053cc508facb5ab9d (patch) | |
| tree | 2b074c003090a9a005212182c3461ffecf13d223 | |
| parent | 7f4895929e9b5221a83673b55e1609f7ffbc9699 (diff) | |
<iman> update image
| -rw-r--r-- | indoteknik_api/controllers/api_v1/category_management_lob.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_api/controllers/api_v1/category_management_lob.py b/indoteknik_api/controllers/api_v1/category_management_lob.py index 7f1b389b..0018edce 100644 --- a/indoteknik_api/controllers/api_v1/category_management_lob.py +++ b/indoteknik_api/controllers/api_v1/category_management_lob.py @@ -55,7 +55,7 @@ class BrandHomepage(controller.Controller): category_ids.append({ 'id': cat.id, 'name': cat.name, - 'image': base_url + 'api/image/product.public.category/image/' + str(cat.id) if cat.image else '', + 'image': base_url + 'web/image?model=x_banner.banner&id=' + str(cat.x_studio_field_7bVEO.id)+'&field=x_banner_image' if cat.image else '', 'child_id': [] }) @@ -85,8 +85,8 @@ class BrandHomepage(controller.Controller): 'id': category.id, 'sequence': category.sequence, 'industries': category.category_id.name if category.category_id else '', - 'image': base_url + 'api/image/website.categories.lob/image/' + str( - category.id) if category.image else '', + 'image': base_url + 'web/image?model=website.categories.lob' + str( + category.id) + '&field=image' if category.image else '', 'category_ids': category_ids }) |
