fix bug
This commit is contained in:
@@ -92,6 +92,7 @@ class Article
|
|||||||
->limit(env("page_count"))
|
->limit(env("page_count"))
|
||||||
->select();
|
->select();
|
||||||
foreach($lists as $vo){
|
foreach($lists as $vo){
|
||||||
|
$vo['imgs'] = "";
|
||||||
if(!empty($vo['imgs'])) {
|
if(!empty($vo['imgs'])) {
|
||||||
$vo['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $vo['imgs']), true);
|
$vo['imgs'] = json_decode(str_replace(['{', '}'], ['[', ']'], $vo['imgs']), true);
|
||||||
$vo['imgs']= $vo['imgs'][0];
|
$vo['imgs']= $vo['imgs'][0];
|
||||||
|
|||||||
Reference in New Issue
Block a user