合并分支 'lyh-server' 到 'master'
save ai_video 查看合并请求 !2495
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -181,9 +181,9 @@ class AiVideoAutoPublish extends Command | @@ -181,9 +181,9 @@ class AiVideoAutoPublish extends Command | ||
| 181 | sleep(300); | 181 | sleep(300); |
| 182 | continue; | 182 | continue; |
| 183 | } | 183 | } |
| 184 | - $item = $aiVideoAutoLogModel->read(['status'=>0]); | 184 | + $item = $aiVideoAutoLogModel->read(['status'=>0,'trigger_id'=>null]); |
| 185 | if($item === false){ | 185 | if($item === false){ |
| 186 | - echo date('Y-m-d H:i:s').':无需生成图片的数据。'.PHP_EOL; | 186 | + echo date('Y-m-d H:i:s').':无生成图片的数据。'.PHP_EOL; |
| 187 | sleep(60); | 187 | sleep(60); |
| 188 | continue; | 188 | continue; |
| 189 | } | 189 | } |
| @@ -31,7 +31,7 @@ class AiVideoController extends BaseController | @@ -31,7 +31,7 @@ class AiVideoController extends BaseController | ||
| 31 | if ($count < 0) { | 31 | if ($count < 0) { |
| 32 | Redis::set('ai_video_image', 0); | 32 | Redis::set('ai_video_image', 0); |
| 33 | } | 33 | } |
| 34 | - $data = $this->param['attachments'] ?? []; | 34 | + $data = $this->param['attachments'][0] ?? []; |
| 35 | $aiVideoAutoLogModel = new AiVideoAutoLog(); | 35 | $aiVideoAutoLogModel = new AiVideoAutoLog(); |
| 36 | if(empty($data) || empty($data['url'])){ | 36 | if(empty($data) || empty($data['url'])){ |
| 37 | $aiVideoAutoLogModel->edit(['status'=>9,'result'=>json_encode($this->param,true)],['trigger_id'=>$this->param['id']]); | 37 | $aiVideoAutoLogModel->edit(['status'=>9,'result'=>json_encode($this->param,true)],['trigger_id'=>$this->param['id']]); |
-
请 注册 或 登录 后发表评论