Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_server_goods
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ccab5ad6
authored
Dec 19, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
533c48a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
app/Model/SelfBrandModel.php
app/Model/SelfClassifyModel.php
app/Model/SelfBrandModel.php
View file @
ccab5ad6
...
...
@@ -116,6 +116,8 @@ class SelfBrandModel extends Model
if
(
!
empty
(
$map
[
'limit'
]))
{
$query
->
limit
(
$map
[
'limit'
]);
}
else
{
$query
->
limit
(
200
);
}
return
$query
->
get
()
->
toArray
();
...
...
app/Model/SelfClassifyModel.php
View file @
ccab5ad6
...
...
@@ -66,7 +66,7 @@ class SelfClassifyModel extends Model
return
$this
->
select
(
$field
)
->
with
([
'sub_class'
=>
function
(
$query
)
use
(
$field
)
{
array_push
(
$field
,
'parent_id'
);
$query
->
select
(
$field
);
$query
->
select
(
$field
)
->
where
(
'status'
,
1
)
;
},
])
->
where
(
'status'
,
1
)
->
where
(
'parent_id'
,
0
)
->
orderBy
(
'class_id'
,
'desc'
)
->
limit
(
9
)
->
get
()
->
toArray
();
...
...
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