作者 lyh

gx

... ... @@ -68,16 +68,13 @@ class AyrReleaseController extends BaseController
$data['images'] = $this->param['images'];
}
//参数处理
// $this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data);
$this->param['mediaUrls'] = ["https://ecdn6.globalso.com/upload/p/2/file/2024-01/65964b260003736548.mp4"];
//时间处理
$this->param['mediaUrls'] = $ayrReleaseLogic->image_file_param($data);
//统一生成发布
$param = [
'post'=>$this->param['content'],
'platforms'=>$this->param['platforms'],
'mediaUrls'=>$this->param['mediaUrls'],//参数处理
];
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);
if(isset($this->param['schedule_date']) && !empty($this->param['schedule_date'])){
$datetime = new \DateTime($this->param['schedule_date'] ?? date('Y-m-d H:i:s'));
$formattedTime = $datetime->format("Y-m-d\TH:i:s\Z");
... ...