🔧 Bug Fixes: - Fixed product image structure to match Miravia API requirements - Updated MiraviaProduct.php getData() method to wrap images in {"Image": [...]} format - Updated MiraviaCombination.php getData() method to wrap SKU images properly - Resolved error "[4224] The Main image of the product is required" 📋 Changes: - Modified getData() methods to transform flat image arrays to nested structure - Product images: images[] → Images: {"Image": [...]} - SKU images: images[] → Images: {"Image": [...]} - Maintains backward compatibility for empty image arrays 🎯 Impact: - Product uploads will now pass Miravia's image validation - Both product-level and SKU-level images properly formatted - Complies with official Miravia API documentation structure 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
829 B
PHP
26 lines
829 B
PHP
<?php
|
||
|
||
namespace Sweeper\PlatformMiddleware\Services\Aliexpress\OpenApi;
|
||
|
||
use Sweeper\PlatformMiddleware\Services\Aliexpress\Base;
|
||
|
||
class Attributes extends Base
|
||
{
|
||
|
||
/**
|
||
* 获取用户运费模板列表信息
|
||
* 目录:API文档/AE-商品/AE-运费/用户运费模板列表信息
|
||
* api: https://developers.aliexpress.com/doc.htm?docId=30126&docType=2
|
||
* api: https://open.aliexpress.com/doc/api.htm#/api?cid=20900&path=aliexpress.freight.redefining.listfreighttemplate&methodType=GET/POST
|
||
* Author: Sweeper <wili.lixiang@gmail.com>
|
||
* DateTime: 2024/3/18 17:42
|
||
* @param $accountInfo
|
||
* @return false
|
||
*/
|
||
public function getAttributesList($accountInfo): ?bool
|
||
{
|
||
return static::executeRequest($accountInfo, 'aliexpress.freight.redefining.listfreighttemplate');
|
||
}
|
||
|
||
}
|