Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
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
刘小敏
loveisland
Commits
4b88b534
Commit
4b88b534
authored
May 07, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AI试戴商品列表接口优化
parent
9b58ffed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
GoodsService.php
addons/shopro/service/goods/GoodsService.php
+1
-3
Goods.php
application/admin/model/shopro/goods/Goods.php
+0
-1
No files found.
addons/shopro/service/goods/GoodsService.php
View file @
4b88b534
...
@@ -275,9 +275,7 @@ class GoodsService
...
@@ -275,9 +275,7 @@ class GoodsService
$this
->
md5s
[]
=
'paginate'
;
$this
->
md5s
[]
=
'paginate'
;
// 默认排序
// 默认排序
$this
->
with
(
'skus'
)
->
order
();
$goods
=
$this
->
query
->
where
(
'status'
,
'up'
)
->
field
(
'id,title,subtitle,image'
)
$goods
=
$this
->
query
->
field
(
'id,title,subtitle,image as sku_name,image as sku_image'
)
->
cache
(
$this
->
getCacheKey
(
$is_cache
),
(
200
+
mt_rand
(
0
,
100
)))
->
cache
(
$this
->
getCacheKey
(
$is_cache
),
(
200
+
mt_rand
(
0
,
100
)))
->
paginate
(
request
()
->
param
(
'list_rows'
,
10
))
->
paginate
(
request
()
->
param
(
'list_rows'
,
10
))
->
toArray
();
->
toArray
();
...
...
application/admin/model/shopro/goods/Goods.php
View file @
4b88b534
...
@@ -126,7 +126,6 @@ class Goods extends Common
...
@@ -126,7 +126,6 @@ class Goods extends Common
return
$query
->
whereIn
(
'status'
,
[
'up'
,
'hidden'
]);
return
$query
->
whereIn
(
'status'
,
[
'up'
,
'hidden'
]);
}
}
public
function
getDispatchTypeTextAttr
(
$value
,
$data
)
public
function
getDispatchTypeTextAttr
(
$value
,
$data
)
{
{
$value
=
$value
?:
(
$data
[
'dispatch_type'
]
??
null
);
$value
=
$value
?:
(
$data
[
'dispatch_type'
]
??
null
);
...
...
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