正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -68,16 +68,13 @@ class AyrReleaseController extends BaseController | @@ -68,16 +68,13 @@ class AyrReleaseController extends BaseController | ||
| 68 | $data['images'] = $this->param['images']; | 68 | $data['images'] = $this->param['images']; |
| 69 | } | 69 | } |
| 70 | //参数处理 | 70 | //参数处理 |
| 71 | -// $this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data); | ||
| 72 | - $this->param['mediaUrls'] = ["https://ecdn6.globalso.com/upload/p/2/file/2024-01/65964b260003736548.mp4"]; | ||
| 73 | - //时间处理 | 71 | + $this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data); |
| 74 | //统一生成发布 | 72 | //统一生成发布 |
| 75 | $param = [ | 73 | $param = [ |
| 76 | 'post'=>$this->param['content'], | 74 | 'post'=>$this->param['content'], |
| 77 | 'platforms'=>$this->param['platforms'], | 75 | 'platforms'=>$this->param['platforms'], |
| 78 | 'mediaUrls'=>$this->param['mediaUrls'],//参数处理 | 76 | 'mediaUrls'=>$this->param['mediaUrls'],//参数处理 |
| 79 | ]; | 77 | ]; |
| 80 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 81 | if(isset($this->param['schedule_date']) && !empty($this->param['schedule_date'])){ | 78 | if(isset($this->param['schedule_date']) && !empty($this->param['schedule_date'])){ |
| 82 | $datetime = new \DateTime($this->param['schedule_date'] ?? date('Y-m-d H:i:s')); | 79 | $datetime = new \DateTime($this->param['schedule_date'] ?? date('Y-m-d H:i:s')); |
| 83 | $formattedTime = $datetime->format("Y-m-d\TH:i:s\Z"); | 80 | $formattedTime = $datetime->format("Y-m-d\TH:i:s\Z"); |
-
请 注册 或 登录 后发表评论