作者 wangzhi

k

... ... @@ -47,7 +47,7 @@ class Index extends Api
public function banner()
{
$model = new Banner();
$arr = $model::all();
$arr = $model->order('quanzhong desc')->select();
if (!$arr) {
$return = [];
$this->success('', $return);
... ... @@ -123,7 +123,7 @@ class Index extends Api
public function Content()
{
$model = new Content();
$arr = $model::all();
$arr = $model->order('quanzhong desc')->select();
foreach ($arr as $k => $v) {
$List[$k]['title'] = $v['title'];
$List[$k]['id'] = $v['id'];
... ...