lh hai 2 meses
pai
achega
f536709625
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Services/DeepSeek/DeepSeekService.php

+ 4 - 0
app/Services/DeepSeek/DeepSeekService.php

@@ -6053,6 +6053,10 @@ class DeepSeekService
      */
     private function checkAndCreateImageTasks(array $merged_items, array $global_items, string $nameKey, string $art_style = ''): array
     {
+        // 确保参数为数组
+        $merged_items = is_array($merged_items) ? $merged_items : [];
+        $global_items = is_array($global_items) ? $global_items : [];
+        
         // 构建全局资源映射表,用于快速查找
         $global_map = [];
         foreach ($global_items as $item) {