Commit 62300ef7 authored by liudong1993's avatar liudong1993

1修改小程序用户 删掉黑名单缓存

parent 4bca082c
...@@ -438,7 +438,21 @@ namespace Mall.Module.User ...@@ -438,7 +438,21 @@ namespace Mall.Module.User
OperatorEnum=OperatorEnum.Equal OperatorEnum=OperatorEnum.Equal
} }
}; };
return member_UserRepository.Update(files, wheres); bool flag = member_UserRepository.Update(files, wheres);
if (flag) {
//清除黑名单缓存
var userInfo = new AppletUserInfo
{
MallBaseId = demodel.MallBaseId,
UserId = demodel.Id,
TenantId = demodel.TenantId,
Name = demodel.Name,
SuperiorId = demodel.SuperiorId ?? 0,
Blacklist = demodel.Blacklist
};
CacheManager.User.UserReidsCache.AppletUserInfoSet(CacheKey.UserModuleCacheKeyConfig.Applet_Blacklist_Info + demodel.Id, userInfo, Config.JwtExpirTime);
}
return flag;
} }
/// <summary> /// <summary>
......
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