Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
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
bp
goods
Commits
c7c6458b
Commit
c7c6458b
authored
Sep 15, 2021
by
suntengda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update app-团餐活动列表已结束列表增加缓存
parent
e517b235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Marketing.php
application/modules/Marketing/controllers/Marketing.php
+3
-3
No files found.
application/modules/Marketing/controllers/Marketing.php
View file @
c7c6458b
...
@@ -187,13 +187,13 @@ class MarketingController extends Base
...
@@ -187,13 +187,13 @@ class MarketingController extends Base
$list
[
'prepare'
]
=
$list
[
'prepare'
]
?
array_column
((
array
)
$list
[
'prepare'
],
null
,
'marketing_id'
)
:
[];
$list
[
'prepare'
]
=
$list
[
'prepare'
]
?
array_column
((
array
)
$list
[
'prepare'
],
null
,
'marketing_id'
)
:
[];
$marketingIdsPrepare
=
array_keys
(
$list
[
'prepare'
]);
$marketingIdsPrepare
=
array_keys
(
$list
[
'prepare'
]);
//已结束的 按结束时间倒序
$list
[
'end'
]
=
$this
->
getTuanCanEndList
();
$marketingIds
=
array_merge
(
$marketingIdsDoing
,
$marketingIdsPrepare
);
$marketingIds
=
array_merge
(
$marketingIdsDoing
,
$marketingIdsPrepare
);
$list
=
$this
->
_fillSkuAndOrderInfo
(
$marketingIds
,
$list
);
$list
=
$this
->
_fillSkuAndOrderInfo
(
$marketingIds
,
$list
);
//已结束的 按结束时间倒序
$list
[
'end'
]
=
$this
->
getTuanCanEndList
();
$list
[
'life_account_id'
]
=
MarketingService
::
getPublicLifeAccountId
();
$list
[
'life_account_id'
]
=
MarketingService
::
getPublicLifeAccountId
();
$this
->
success
([
'result'
=>
$list
]);
$this
->
success
([
'result'
=>
$list
]);
...
...
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