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
dce65c2a
Commit
dce65c2a
authored
Sep 27, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定关系删除缓存bug
parent
82fe728b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Member.php
application/controllers/Member.php
+0
-1
MemberMapping.php
application/models/DAO/MemberMapping.php
+3
-2
No files found.
application/controllers/Member.php
View file @
dce65c2a
...
@@ -146,5 +146,4 @@ class MemberController extends \Our\Controller_AbstractApi {
...
@@ -146,5 +146,4 @@ class MemberController extends \Our\Controller_AbstractApi {
$this
->
success
(
new
stdClass
(),
\Our\DescribeConst
::
bindMobileForWxSuccess
,
\Our\DescribeConst
::
bindMobileForWxSuccess
);
$this
->
success
(
new
stdClass
(),
\Our\DescribeConst
::
bindMobileForWxSuccess
,
\Our\DescribeConst
::
bindMobileForWxSuccess
);
}
}
}
}
application/models/DAO/MemberMapping.php
100755 → 100644
View file @
dce65c2a
...
@@ -125,10 +125,11 @@ class MemberMappingModel extends \DAO\AbstractModel{
...
@@ -125,10 +125,11 @@ class MemberMappingModel extends \DAO\AbstractModel{
public
function
del
(
$where
){
public
function
del
(
$where
){
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
$condition
=
$where
;
if
(
is_array
(
$where
)){
if
(
is_array
(
$where
)){
$
where
=
$this
->
db
->
getSqlWhereByArray
(
$where
);
$
condition
=
$this
->
db
->
getSqlWhereByArray
(
$where
);
}
}
$result
=
$this
->
db
->
delete
(
$this
->
_tableName
)
->
where
(
$
where
)
->
execute
();
$result
=
$this
->
db
->
delete
(
$this
->
_tableName
)
->
where
(
$
condition
)
->
execute
();
if
(
$result
&&
isset
(
$where
[
'member_id'
])){
if
(
$result
&&
isset
(
$where
[
'member_id'
])){
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db0\MemberMappingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$where
[
'member_id'
]));
\Our\RedisHelper
::
delCachedFunction
(
\Redis\Db0\MemberMappingRedisModel
::
getInstance
(),
array
(
&
$this
,
'getList'
),
array
(),
array
(
$where
[
'member_id'
]));
}
}
...
...
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