Commit 857ea5b6 by 杨昕

test

parent 58e20e4c
Pipeline #18749 passed with stages
in 1 minute 9 seconds
......@@ -273,7 +273,7 @@ class MediaModel extends Eloquent
$id = MediaModel::insertGetId($data);
//处理封面图片以及分辨率
self::getScreeShotInfo($media_id);
//self::getScreeShotInfo($media_id);
LogModel::addlog(["添加媒资信息"=> $data,['媒资ID为:=> '.$id]]);
}catch (\Exception $exception){
......@@ -364,7 +364,7 @@ class MediaModel extends Eloquent
throw new \Exception("更新失败");
}
//处理封面图片以及分辨率
self::getScreeShotInfo($id);
//self::getScreeShotInfo($id);
LogModel::addlog(["更新媒资信息=>".$id,$data]);
}catch (\Exception $exception){
......@@ -1085,7 +1085,7 @@ class MediaModel extends Eloquent
* @return mixed
* @throws DatabaseException
*/
public static function getScreeShotInfo($media_id){
public static function getScreeShotInfo($request){
try{
$media = MediaModel::select("_id","media_name","duration","secret_key","media_url")->where('_id',$media_id)->first();
......
......@@ -53,5 +53,6 @@ Route::group(['namespace' => 'Api', 'prefix' => 'user','middleware' => ['api']],
Route::post("getMediaListByMediaIds","MediaController@getMediaListByMediaIds");
//Route::get("media_url_change","MediaController@handleMediaUrl");
Route::get("getScreeShotInfo/{id}","MediaController@getScreeShotInfo");
Route::post("screenShot","MediaController@getScreeShotInfo");
Route::post("screenShotCallback","MediaController@updateScreeShotInfo");
});
\ No newline at end of file
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