Prechádzať zdrojové kódy

修复拉取上传短剧任务

liuzejian 1 rok pred
rodič
commit
797d318d14

+ 2 - 2
app/Console/Commands/Video/WechatCheck/GetTaskInfo.php

@@ -73,14 +73,14 @@ class GetTaskInfo extends Command
             'task_id' => $syncInfo->sync_task_id
         ]);
         if(false === $parsedContent || (0 != $parsedContent['errcode'] ?? 0)) {
-            return $parsedContent['task_info'];
-        } else {
             myLog('GetTaskInfo')->error('拉取上传短剧任务查询失败', [
                 'task_id' => $syncInfo->sync_task_id,
                 'appid' => $appid,
                 'result' => $parsedContent,
             ]);
             return [];
+        } else {
+            return $parsedContent['task_info'];
         }
 
     }