Commit dce65c2a authored by liuyuzhen's avatar liuyuzhen

绑定关系删除缓存bug

parent 82fe728b
......@@ -146,5 +146,4 @@ class MemberController extends \Our\Controller_AbstractApi {
$this->success(new stdClass(),\Our\DescribeConst::bindMobileForWxSuccess,\Our\DescribeConst::bindMobileForWxSuccess);
}
}
......@@ -125,10 +125,11 @@ class MemberMappingModel extends \DAO\AbstractModel{
public function del($where){
$this->setDb(\Our\DbNameConst::masterDBConnectName);
$condition = $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'])){
\Our\RedisHelper::delCachedFunction(\Redis\Db0\MemberMappingRedisModel::getInstance(),array(&$this, 'getList'),array(),array($where['member_id']));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment