Commit 396a3214 by 杨昕

优化从集合获取媒资

parent 83c45343
Pipeline #9993 passed with stages
in 32 seconds
......@@ -334,7 +334,7 @@ class MediaModel extends Eloquent
/**
* 排除res为空
*/
if (!isset($res[0]) || empty($res[0])){
if (!isset($res[0]) || empty($res[0]->first())){
return [];
}
......
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