Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ruer_cms
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蔡闯
ruer_cms
Commits
c7332108
Commit
c7332108
authored
Mar 04, 2021
by
蔡闯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改细节
parent
bc19d314
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
app/api/controller/Index.php
app/api/controller/Index.php
+1
-6
config/app.php
config/app.php
+4
-0
No files found.
app/api/controller/Index.php
View file @
c7332108
...
...
@@ -39,12 +39,7 @@ class Index extends Base
//首页轮播图
$banner
=
Db
::
name
(
'village_banner'
)
->
where
([
'village_id'
=>
$village_id
])
->
order
([
'sort_id'
=>
'desc'
,
'create_time'
=>
'desc'
])
->
field
(
'pic,url'
)
->
select
()
->
toArray
();
if
(
!
$banner
)
{
$banner
=
[
[
'pic'
=>
'/upload/banner/banner.jpg'
,
'url'
=>
'#'
],
[
'pic'
=>
'/upload/banner/banner2.jpg'
,
'url'
=>
'#'
],
[
'pic'
=>
'/upload/banner/banner3.jpg'
,
'url'
=>
'#'
],
[
'pic'
=>
'/upload/banner/banner4.jpg'
,
'url'
=>
'#'
],
];
$banner
=
config
(
'app.banner'
);
}
$data
[
'banner'
]
=
$banner
;
...
...
config/app.php
View file @
c7332108
...
...
@@ -72,6 +72,10 @@ return [
//app社区默认logo
'village_log'
=>
'/upload/village/village_logo.png'
,
'banner'
=>
[
'/upload/new/village_11/20210218/7fb2114571b4f90997d5612d01a1ba33.jpg'
,
'/upload/new/village_11/20210218/712aade4afadc8f1ae6d5aa93ca6f76c.jpg'
,
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment