Explorar o código

调整映射关系

sunxbiao hai 9 meses
pai
achega
74dce3ee24

+ 5 - 6
app/common/enum/third/ThirdPartyGoodCacheEnum.php

@@ -22,12 +22,11 @@ class ThirdPartyGoodCacheEnum extends CommonEnum
22 22
     public static function platformCodeMapByThirdPartyGoodEnumTypeCode($type)
23 23
     {
24 24
         $map = [
25
-            1 => self::PLATFORM['Taobao']['code'],
26
-            2 => self::PLATFORM['Jingdong']['code'],
27
-            3 => self::PLATFORM['Pdd']['code'],
28
-            4 => self::PLATFORM['Suning']['code'],
29
-            5 => self::PLATFORM['Vipshop']['code'],
30
-            9 => self::PLATFORM['Douyin']['code']
25
+            5 => self::PLATFORM['Taobao']['code'],
26
+            6 => self::PLATFORM['Jingdong']['code'],
27
+            1 => self::PLATFORM['Pdd']['code'],
28
+            3 => self::PLATFORM['Suning']['code'],
29
+            2 => self::PLATFORM['Vipshop']['code'],
31 30
         ];
32 31
         return $map[$type];
33 32
     }

+ 2 - 1
app/services/ThirdParty/Taobao/ProductService.php

@@ -2,6 +2,7 @@
2 2
 
3 3
 namespace app\services\ThirdParty\Taobao;
4 4
 
5
+use app\common\enum\CommonEnum;
5 6
 use app\common\enum\third\ThirdPartyGoodCacheEnum;
6 7
 use app\common\enum\third\ThirdPartyGoodEnum;
7 8
 use app\utils\ArrayUtil;
@@ -106,7 +107,7 @@ class ProductService extends TaobaoService
106 107
                     // 商品信息-淘宝客新商品id;
107 108
                     'skuId' => $skuId,
108 109
                     'itemId' => $data['item_id'],
109
-                    'type' => ThirdPartyGoodEnum::TYPE['Taobao']['code'],
110
+                    'type' => CommonEnum::ORDER_TYPE['TaobaoKe']['code'],
110 111
                     // 商品信息-商品标题
111 112
                     'name' => $data['item_basic_info']['title'] ?? '',
112 113
                     // 商品信息-商品主图