update
This commit is contained in:
@@ -37,6 +37,7 @@ class AppStoreSync extends HyperfCommand
|
|||||||
Db::beginTransaction();
|
Db::beginTransaction();
|
||||||
|
|
||||||
$stores->each(function($el){
|
$stores->each(function($el){
|
||||||
|
|
||||||
// 处理 $warehouse_id,空字符串转换为 null
|
// 处理 $warehouse_id,空字符串转换为 null
|
||||||
$warehouse_id = !empty($el['warehouse']['id']) ? (int)$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,
|
'enabled' => \boolval($el['is_enabled']) === true ? true : false,
|
||||||
'name' => $el['name'],
|
'name' => $el['name'],
|
||||||
'label' => $el['label'] ?? null,
|
'label' => $el['label'] ?? null,
|
||||||
'created_at' => $el['created_date'],
|
'created_at' => $el['createdDate'],
|
||||||
'ext' => $ext,
|
'ext' => $ext,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user