Commit af2d0283 by 杨昕

优化代码

parent 3c01ef35
Pipeline #18741 passed with stages
in 1 minute 37 seconds
......@@ -1111,9 +1111,9 @@ class MediaModel extends Eloquent
LogModel::addlog(["第三方获取媒资 screenshot 数据"=>$res,"请求路径"=>$url,"请求参数"=>$data,"请求头"=>$header]);
$item = array();
if (isset($result["data"])){
$item["height"] = $result["data"]["height"];
$item["width"] = $result["data"]["width"];
$item["screen_shot"] = $result["data"]["screenshot"];
$item["screen_shot"]["height"] = $result["data"]["height"];
$item["screen_shot"]["width"] = $result["data"]["height"];
$item["screen_shot"]["url"] = $result["data"]["width"];
$flag = MediaModel::where("_id",$media_id)->update($item);
if (!$flag){
......
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