param(); $con = []; $this->validate($params, ['banner_location|轮播图位置' => 'require']); $query = ModelBanner::where($con) ->field([ 'banner_img', 'banner_location', ]) ->where('banner_location', $params['banner_location']) ->order('banner_order', 'asc') ->select(); return msg(0, "获取轮播图列表成功!", [ 'data' => $query, 'count' => count($query) ]); } }