|
|
|
@ -72,7 +72,7 @@ class IndexController extends Controller |
|
|
|
} |
|
|
|
|
|
|
|
# 专题列表
|
|
|
|
$special = Advertising::where('agent_id', $this->agent_id) |
|
|
|
$special = Advertising::where(['agent_id' => $this->agent_id, 'display' => 1]) |
|
|
|
->orderBy('sort')->orderBy('id', 'desc')->limit(6) |
|
|
|
->get(['title', 'picture', 'type', 'url']); |
|
|
|
if (!$special->isEmpty()) { |
|
|
|
|