|
...
|
...
|
@@ -55,9 +55,12 @@ class AiVideoService |
|
|
|
* @method :post
|
|
|
|
* @time :2025/4/29 17:59
|
|
|
|
*/
|
|
|
|
public function createTask($title,$description,$images = [],$anchor = [],$storage = 'CDN'){
|
|
|
|
public function createTask($title,$description,$images = [],$anchor = [],$storage = 'CDN',$ayrshare_profile_key = ''){
|
|
|
|
$request_url = $this->url.'api/video/create';
|
|
|
|
$param = ['title'=>$title, 'description'=>$description, 'images'=>$images,'anchor'=>$anchor,'storage'=>$storage];
|
|
|
|
if(!empty($ayrshare_profile_key)){
|
|
|
|
$param['ayrshare_profile_key'] = $ayrshare_profile_key;
|
|
|
|
}
|
|
|
|
$param['mch_id'] = $this->mch_id;
|
|
|
|
$this->sign = $this->generateSign($param,$this->key);
|
|
|
|
$param['sign'] = $this->sign;
|
...
|
...
|
|