...
|
...
|
@@ -499,10 +499,10 @@ class Almighty extends Api |
|
|
$config = get_addon_config('qiniu');
|
|
|
$auth = new Auth($config['app_key'], $config['secret_key']);
|
|
|
//设置转码参数
|
|
|
$fops = "avthumb/amr/ab/192k";
|
|
|
$fops = "avthumb/mp2/ab/192k";
|
|
|
//通过添加'|saveas'参数,指定处理后的文件保存的bucket和key 不指定默认保存在当前空间,bucket为目标空间,后一个参数为转码之后文件名
|
|
|
$filename = str_replace(strrchr($key, "."),"",$key);
|
|
|
$entry = $config['bucket'] . ':' . $filename . '.amr';
|
|
|
$entry = $config['bucket'] . ':' . $filename . '.mp2';
|
|
|
$saveas_key = $auth->base64_urlSafeEncode($entry);
|
|
|
|
|
|
$fops = $fops.'|saveas/'.$saveas_key;
|
...
|
...
|
|