This commit is contained in:
2026-02-09 12:57:43 +08:00
parent 26e63ee331
commit 103e89f827
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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,
]; ];