修复内容管理素材无法上传的问题
This commit is contained in:
@@ -64,7 +64,7 @@ class ContentController extends BaseController
|
||||
}
|
||||
$newContent = [];
|
||||
foreach ($content as $k => $v){
|
||||
if (in_array($v,['text','image','video','audio','file','link'])){
|
||||
if (in_array($v['type'],['text','image','video','audio','file','link'])){
|
||||
$newContent[] = $v;
|
||||
}
|
||||
}
|
||||
@@ -159,7 +159,7 @@ class ContentController extends BaseController
|
||||
}
|
||||
$newContent = [];
|
||||
foreach ($content as $k => $v){
|
||||
if (in_array($v,['text','image','video','audio','file','link'])){
|
||||
if (in_array($v['type'],['text','image','video','audio','file','link'])){
|
||||
$newContent[] = $v;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user