Commit 0b58cdf9 by 周业恒

fake

parent 2ae9632d
Pipeline #21222 passed with stages
in 55 seconds
......@@ -176,6 +176,7 @@ class MediaController extends Controller
'media_type' => '',
'shop_id' => '',
'status' => '',
'is_fake' => '',
]));
$data_time = Carbon::now();
......
......@@ -282,7 +282,7 @@ class MediaModel extends Eloquent
}
LogModel::addlog(["添加媒资信息" => $data, ['媒资ID为:=> ' . $id]]);
if(isset($request->is_fake)){
if(isset($request->is_fake) && $request->is_fake=='1'){
$url = getRbac($request, '/callback/av/transform/volce', '', $type = 'fake_transcode');
http_request_code($url, null, 'POST', json_encode(['mediaid' => $media_id,'duration' =>$request->duration ?? '0','size'=>'0']));
LogModel::addlog(["火山媒资信息" => $data, ['媒资ID为:=> ' . $id]]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment