Skip to content

Commit

Permalink
fix: 修复云点播验证
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperHaoHaoHao committed Nov 27, 2020
1 parent 136900e commit a5ed642
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Qcloud/QcloudTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,44 +85,44 @@ public function describeStorageData($sub_app_id)

public function describeSnapshotByTimeOffsetTemplates($template_id, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->describeSnapshotByTimeOffsetTemplates($template_id, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->describeSnapshotByTimeOffsetTemplates($template_id, $qcloudVodSubAppId ?: null);
}

public function DescribeTranscodeTemplates($template_id, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->describeTranscodeTemplates($template_id, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->describeTranscodeTemplates($template_id, $qcloudVodSubAppId ?: null);
}

public function describeProcedureTemplates($name, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->describeProcedureTemplates($name, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->describeProcedureTemplates($name, $qcloudVodSubAppId ?: null);
}

// -------------

public function deleteVodMedia($file_id, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->deleteMedia($file_id, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->deleteMedia($file_id, $qcloudVodSubAppId ?: null);
}

public function transcodeVideo($file_id, $taskType, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->transcodeVideo($file_id, $taskType, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->transcodeVideo($file_id, $taskType, $qcloudVodSubAppId ?: null);
}

public function describeTaskDetail($task_id, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->describeTaskDetail($task_id, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->describeTaskDetail($task_id, $qcloudVodSubAppId ?: null);
}

public function describeMediaInfos($file_ids, $filters, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->describeMediaInfos($file_ids, $filters, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->describeMediaInfos($file_ids, $filters, $qcloudVodSubAppId ?: null);
}

public function processMediaByProcedure($file_id, $template_name, $qcloudVodSubAppId = null)
{
return $this->getQcloud()->service('vod')->processMediaByProcedure($file_id, $template_name, $qcloudVodSubAppId);
return $this->getQcloud()->service('vod')->processMediaByProcedure($file_id, $template_name, $qcloudVodSubAppId ?: null);
}

}

0 comments on commit a5ed642

Please sign in to comment.