update
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
|
||||
@@ -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 需要对 运营侧的产品维护做进一步规范
|
||||
|
||||
Reference in New Issue
Block a user