Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
c95f49b1
Commit
c95f49b1
authored
Jan 16, 2019
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页推荐分类相关
parent
5419c681
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
StoreService.php
application/models/Business/Store/StoreService.php
+3
-0
No files found.
application/models/Business/Store/StoreService.php
View file @
c95f49b1
...
@@ -890,6 +890,9 @@ class StoreServiceModel extends \Business\AbstractModel{
...
@@ -890,6 +890,9 @@ class StoreServiceModel extends \Business\AbstractModel{
}
}
$favoritesStoreDao
=
\DAO\FavoritesStoreModel
::
getInstance
();
$favoritesStoreDao
=
\DAO\FavoritesStoreModel
::
getInstance
();
$memberStoreList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\FavoritesStoreRedisModel
::
getInstance
(),
array
(
&
$favoritesStoreDao
,
'selectList'
),
array
(
array
(
'member_id'
=>
$memberId
,
'fav_from'
=>
\Our\ApiConst
::
scanFavor
),
'store_id,fav_time'
),
\Our\ApiConst
::
oneHour
,
array
(
$memberId
));
$memberStoreList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\FavoritesStoreRedisModel
::
getInstance
(),
array
(
&
$favoritesStoreDao
,
'selectList'
),
array
(
array
(
'member_id'
=>
$memberId
,
'fav_from'
=>
\Our\ApiConst
::
scanFavor
),
'store_id,fav_time'
),
\Our\ApiConst
::
oneHour
,
array
(
$memberId
));
if
(
!
$memberStoreList
){
return
array
();
}
$memberStoreIds
=
array_column
(
$memberStoreList
,
'store_id'
);
$memberStoreIds
=
array_column
(
$memberStoreList
,
'store_id'
);
$signStoreClassSql
=
' store_id in ('
.
implode
(
','
,
$memberStoreIds
)
.
') and is_charged=1 and gc_parent_id ='
.
$gcId
;
$signStoreClassSql
=
' store_id in ('
.
implode
(
','
,
$memberStoreIds
)
.
') and is_charged=1 and gc_parent_id ='
.
$gcId
;
$qmStoreClassDao
=
\DAO\QmStoreClassModel
::
getInstance
();
$qmStoreClassDao
=
\DAO\QmStoreClassModel
::
getInstance
();
...
...
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