| xqd
@@ -335,6 +335,7 @@ class ApiController extends Controller
|
|
|
$list = Content::whereIn('type', [1])->orderBy('sort')->offset($offset)->limit(15)->get();
|
|
|
foreach($list as $item) {
|
|
|
$item->publish_date = substr($item->created_at, 0, 10);
|
|
|
+ $item->pic_url = url($item->pic_url);
|
|
|
}
|
|
|
return response()->json(['status' => 'success', 'list' => $list]);
|
|
|
}
|