Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
章建武
fashion_group
Commits
b2df31b3
Commit
b2df31b3
authored
Jun 08, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
dadd06a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
IndexController.php
app/Http/Controllers/Index/IndexController.php
+5
-2
No files found.
app/Http/Controllers/Index/IndexController.php
View file @
b2df31b3
...
@@ -59,6 +59,7 @@ class IndexController extends Controller
...
@@ -59,6 +59,7 @@ class IndexController extends Controller
$article1
=
ArticleInfo
::
query
()
$article1
=
ArticleInfo
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
where
(
'language_type'
,
'='
,
$language_type
)
->
where
([
'status'
=>
0
])
->
limit
(
1
)
->
limit
(
1
)
->
orderBy
(
'created_at'
,
'desc'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
first
();
->
first
();
...
@@ -66,17 +67,19 @@ class IndexController extends Controller
...
@@ -66,17 +67,19 @@ class IndexController extends Controller
$article2
=
ArticleInfo
::
query
()
$article2
=
ArticleInfo
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
where
(
'language_type'
,
'='
,
$language_type
)
->
limit
(
1
)
->
limit
(
1
)
->
where
([
'status'
=>
0
])
->
orderBy
(
'updated_at'
,
'desc'
)
->
orderBy
(
'updated_at'
,
'desc'
)
->
first
();
->
first
();
$alert_t
=
ArticleInfo
::
query
()
$alert_t
=
ArticleInfo
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
where
(
'language_type'
,
'='
,
$language_type
)
->
orderBy
(
'id'
,
'asc'
)
->
orderBy
(
'updated_at'
,
'asc'
)
->
where
([
'status'
=>
0
])
->
limit
(
1
)
->
limit
(
1
)
->
first
();
->
first
();
$alert_b
=
ArticleInfo
::
query
()
$alert_b
=
ArticleInfo
::
query
()
->
where
(
'language_type'
,
'='
,
$language_type
)
->
where
(
'language_type'
,
'='
,
$language_type
)
->
orderBy
(
'release_time'
,
'
de
sc'
)
->
orderBy
(
'release_time'
,
'
a
sc'
)
->
where
([
'status'
=>
0
])
->
where
([
'status'
=>
0
])
->
limit
(
4
)
->
limit
(
4
)
->
get
();
->
get
();
...
...
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