正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -81,7 +81,7 @@ class AiVideoLogic extends BaseLogic | @@ -81,7 +81,7 @@ class AiVideoLogic extends BaseLogic | ||
| 81 | if($result['status'] == 200){ | 81 | if($result['status'] == 200){ |
| 82 | $aiVideoTaskModel = new AiVideoTask(); | 82 | $aiVideoTaskModel = new AiVideoTask(); |
| 83 | $aiVideoTaskModel->addReturnId(['task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id']]); | 83 | $aiVideoTaskModel->addReturnId(['task_id'=>$result['data']['task_id'],'project_id'=>$this->user['project_id']]); |
| 84 | - $id = $this->model->addReturnId(['task_id'=>$result['data']['task_id'],'description'=>$this->param['description'],'project_id'=>$this->user['project_id'],'images'=>json_encode($this->param['images'],true),'anchor'=>json_encode($this->param['anchor'] ?? [],true)]); | 84 | + $id = $this->model->addReturnId(['task_id'=>$result['data']['task_id'],'description'=>$this->param['description'],'project_id'=>$this->user['project_id'],'images'=>$this->param['images'],'anchor'=>$this->param['anchor'] ?? []]); |
| 85 | return $this->success(['id'=>$id]); | 85 | return $this->success(['id'=>$id]); |
| 86 | } | 86 | } |
| 87 | return $this->success(); | 87 | return $this->success(); |
| @@ -55,7 +55,7 @@ class AiVideoService | @@ -55,7 +55,7 @@ class AiVideoService | ||
| 55 | */ | 55 | */ |
| 56 | public function createTask($title,$description,$images = [],$anchor = []){ | 56 | public function createTask($title,$description,$images = [],$anchor = []){ |
| 57 | $request_url = $this->url.'api/video/create'; | 57 | $request_url = $this->url.'api/video/create'; |
| 58 | - $param = ['title'=>$title, 'description'=>$description, 'images'=>json_encode($images,true),'anchor'=>json_encode($anchor,true)]; | 58 | + $param = ['title'=>$title, 'description'=>$description, 'images'=>$images,'anchor'=>$anchor]; |
| 59 | $param['mch_id'] = $this->mch_id; | 59 | $param['mch_id'] = $this->mch_id; |
| 60 | $this->sign = $this->generateSign($param,$this->key); | 60 | $this->sign = $this->generateSign($param,$this->key); |
| 61 | $param['sign'] = $this->sign; | 61 | $param['sign'] = $this->sign; |
-
请 注册 或 登录 后发表评论