|
|
|
@ -70,8 +70,32 @@ public final class LingxingConstants { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 领星 platform_code → 统一 Platform。 |
|
|
|
* 领星 platform_code → 统一 Platform。 |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>10034 同时对应 Mirakl / BestBuy;Target、AEPH 未独立枚举, |
|
|
|
* <p>取值以 2026-11 真实店铺列表({@code /pb/mp/shop/v2/getSellerList},88 家店)为准:</p> |
|
|
|
* 按文档需要到领星后台确认,此处先映射到 CUSTOM,待核对。</p> |
|
|
|
* |
|
|
|
|
|
|
|
* <table summary="platform_code 实测对照"> |
|
|
|
|
|
|
|
* <tr><th>code</th><th>实测店铺</th><th>Platform</th></tr> |
|
|
|
|
|
|
|
* <tr><td>10001</td><td>AMZ-*</td><td>AMAZON_SC</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10002</td><td>SPF-*</td><td>SHOPIFY</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10003</td><td>EBA-*</td><td>EBAY</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10005 / 10031</td><td>AEP-* / AEPH-*</td><td>AEPH</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10008</td><td>WMT-*</td><td>WALMART_SC</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10011</td><td>TTK-*</td><td>TIKTOK</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10022 / 10024</td><td>QT-* / TEMU-*</td><td>TEMU</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10028</td><td>SHE-*</td><td>SHEIN</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10034</td><td>BSB-* / LOS-*</td><td>MIRAKL</td></tr> |
|
|
|
|
|
|
|
* <tr><td>10035</td><td>AMZ-*-VC-*</td><td>AMAZON_VC</td></tr> |
|
|
|
|
|
|
|
* </table> |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p><b>刻意不细分、落到 CUSTOM 的码</b>:</p> |
|
|
|
|
|
|
|
* <ul> |
|
|
|
|
|
|
|
* <li>{@code 10009} 自定义平台:实测混有 WOT / MIC / BSB / TTK 及事业部命名, |
|
|
|
|
|
|
|
* 同一码下业务平台不同,无法用一个枚举值表示</li> |
|
|
|
|
|
|
|
* <li>{@code 10010} Wayfair:统一模型暂无对应枚举</li> |
|
|
|
|
|
|
|
* <li>{@code 10017}:实测同时存在「Target DVS」与「WMT-1P-US」,两者业务平台不同</li> |
|
|
|
|
|
|
|
* </ul> |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p>注意 Target 没有独立的领星商品接口,它的商品走 Shopify 的 |
|
|
|
|
|
|
|
* {@code /basicOpen/multiplatform/shopify/variantList}。</p> |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static Platform toPlatform(Integer platformCode) { |
|
|
|
public static Platform toPlatform(Integer platformCode) { |
|
|
|
if (platformCode == null) { |
|
|
|
if (platformCode == null) { |
|
|
|
@ -80,23 +104,37 @@ public final class LingxingConstants { |
|
|
|
switch (platformCode) { |
|
|
|
switch (platformCode) { |
|
|
|
case 10001: |
|
|
|
case 10001: |
|
|
|
return Platform.AMAZON_SC; |
|
|
|
return Platform.AMAZON_SC; |
|
|
|
case 10035: |
|
|
|
case 10002: |
|
|
|
return Platform.AMAZON_VC; |
|
|
|
return Platform.SHOPIFY; |
|
|
|
|
|
|
|
case 10003: |
|
|
|
|
|
|
|
return Platform.EBAY; |
|
|
|
|
|
|
|
case 10005: |
|
|
|
|
|
|
|
case 10031: |
|
|
|
|
|
|
|
return Platform.AEPH; |
|
|
|
case 10008: |
|
|
|
case 10008: |
|
|
|
return Platform.WALMART_SC; |
|
|
|
return Platform.WALMART_SC; |
|
|
|
|
|
|
|
case 10009: |
|
|
|
|
|
|
|
// 自定义平台:混有多平台,保持 CUSTOM
|
|
|
|
|
|
|
|
return Platform.CUSTOM; |
|
|
|
|
|
|
|
case 10010: |
|
|
|
|
|
|
|
// Wayfair:统一模型暂无枚举
|
|
|
|
|
|
|
|
return Platform.CUSTOM; |
|
|
|
case 10011: |
|
|
|
case 10011: |
|
|
|
return Platform.TIKTOK; |
|
|
|
return Platform.TIKTOK; |
|
|
|
case 10022: |
|
|
|
case 10017: |
|
|
|
case 10024: |
|
|
|
// 实测混有 Target DVS 与 WMT-1P,无法用一个值表示
|
|
|
|
return Platform.TEMU; |
|
|
|
return Platform.CUSTOM; |
|
|
|
case 10003: |
|
|
|
|
|
|
|
return Platform.EBAY; |
|
|
|
|
|
|
|
case 10021: |
|
|
|
case 10021: |
|
|
|
case 10027: |
|
|
|
case 10027: |
|
|
|
case 10028: |
|
|
|
case 10028: |
|
|
|
return Platform.SHEIN; |
|
|
|
return Platform.SHEIN; |
|
|
|
|
|
|
|
case 10022: |
|
|
|
|
|
|
|
case 10024: |
|
|
|
|
|
|
|
return Platform.TEMU; |
|
|
|
case 10034: |
|
|
|
case 10034: |
|
|
|
return Platform.MIRAKL; |
|
|
|
return Platform.MIRAKL; |
|
|
|
|
|
|
|
case 10035: |
|
|
|
|
|
|
|
return Platform.AMAZON_VC; |
|
|
|
default: |
|
|
|
default: |
|
|
|
return Platform.CUSTOM; |
|
|
|
return Platform.CUSTOM; |
|
|
|
} |
|
|
|
} |
|
|
|
|