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
62c641d3
Commit
62c641d3
authored
May 09, 2026
by
刘小敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动商品接口优化
parent
f12dfe71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Goods.php
addons/shopro/controller/goods/Goods.php
+5
-1
No files found.
addons/shopro/controller/goods/Goods.php
View file @
62c641d3
...
...
@@ -176,6 +176,7 @@ class Goods extends Common
public
function
activityList
()
{
$activity_id
=
$this
->
request
->
param
(
'activity_id'
);
$need_buyers
=
$this
->
request
->
param
(
'need_buyers'
,
0
);
// 需要查询哪些人在参与活动
$activity
=
Activity
::
where
(
'id'
,
$activity_id
)
->
find
();
if
(
!
$activity
)
{
$this
->
error
(
__
(
'No Results were found'
));
...
...
@@ -186,7 +187,10 @@ class Goods extends Common
foreach
(
$goodsIds
as
$id
)
{
session
(
'goods-activity_id:'
.
$id
,
$activity_id
);
}
$service
=
new
GoodsService
(
function
(
$goods
)
{
$service
=
new
GoodsService
(
function
(
$goods
)
use
(
$need_buyers
)
{
if
(
$need_buyers
)
{
$goods
->
buyers
=
$goods
->
buyers
;
}
$goods
->
promos
=
$goods
->
promos
;
$goods
->
activity
=
$goods
->
activity
;
return
$goods
;
...
...
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