Selaa lähdekoodia

修复拉取上传短剧任务

liuzejian 1 vuosi sitten
vanhempi
commit
797d318d14
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/Console/Commands/Video/WechatCheck/GetTaskInfo.php

+ 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'];
         }
 
     }