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
474f1602
Commit
474f1602
authored
Nov 26, 2018
by
zhz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store
parent
a144c625
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
FavoritesStore.php
application/models/DAO/FavoritesStore.php
+3
-0
No files found.
application/models/DAO/FavoritesStore.php
View file @
474f1602
...
@@ -187,6 +187,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
...
@@ -187,6 +187,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
* @throws \Our\Exception
* @throws \Our\Exception
*/
*/
public
function
updateStoreCollecitonsCache
(
$storeIds
,
$memberId
,
$type
=
1
)
{
public
function
updateStoreCollecitonsCache
(
$storeIds
,
$memberId
,
$type
=
1
)
{
var_dump
(
$storeIds
);
if
(
!
$storeIds
||
!
is_array
(
$storeIds
))
{
if
(
!
$storeIds
||
!
is_array
(
$storeIds
))
{
return
true
;
return
true
;
}
}
...
@@ -206,6 +207,8 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
...
@@ -206,6 +207,8 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
}
}
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db6\FavoritesStoreRedisModel
::
getInstance
(),
array
(
&
$this
,
'getFavoritesStores'
),
array
(),
array
(
$memberId
));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db6\FavoritesStoreRedisModel
::
getInstance
(),
array
(
&
$this
,
'getFavoritesStores'
),
array
(),
array
(
$memberId
));
//更新个人中心首页数量
//更新个人中心首页数量
var_dump
(
$type
);
var_dump
(
count
(
$storeIds
));
\DAO\MemberModel
::
getInstance
()
->
_changeNum
(
\Our\NameConst
::
storeCollection
,
$memberId
,
$type
==
1
?
-
(
count
(
$storeIds
))
:
count
(
$storeIds
));
\DAO\MemberModel
::
getInstance
()
->
_changeNum
(
\Our\NameConst
::
storeCollection
,
$memberId
,
$type
==
1
?
-
(
count
(
$storeIds
))
:
count
(
$storeIds
));
return
true
;
return
true
;
}
}
...
...
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