diff --git a/backend/app/Command/AppStoreSync.php b/backend/app/Command/AppStoreSync.php index d8dfd12..e9a7a47 100644 --- a/backend/app/Command/AppStoreSync.php +++ b/backend/app/Command/AppStoreSync.php @@ -37,6 +37,7 @@ class AppStoreSync extends HyperfCommand Db::beginTransaction(); $stores->each(function($el){ + // 处理 $warehouse_id,空字符串转换为 null $warehouse_id = !empty($el['warehouse']['id']) ? (int)$el['warehouse']['id'] : null; @@ -55,7 +56,7 @@ class AppStoreSync extends HyperfCommand 'enabled' => \boolval($el['is_enabled']) === true ? true : false, 'name' => $el['name'], 'label' => $el['label'] ?? null, - 'created_at' => $el['created_date'], + 'created_at' => $el['createdDate'], 'ext' => $ext, ]; diff --git a/backend/app/Platform/Tmall/EntityParse/Order.php b/backend/app/Platform/Tmall/EntityParse/Order.php index ea5a68e..20568eb 100644 --- a/backend/app/Platform/Tmall/EntityParse/Order.php +++ b/backend/app/Platform/Tmall/EntityParse/Order.php @@ -442,7 +442,7 @@ class Order extends EntityParse 'sub_order_type_id' => null, // @attention 值为 0 表示未找到产品 id 'product_id' => 0, // 值为 0 表示未找到产品 id, 之后会被批量查询覆盖 - 'platform_product_id' =>$item['num_iid'], + 'platform_product_id' => $item['num_iid'], // @attention @TODO 需要对 运营侧的产品维护做进一步规范 'product_sku' => $item['outer_sku_id'] ?? null, // @attention @TODO 需要对 运营侧的产品维护做进一步规范