Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
62300ef7
Commit
62300ef7
authored
Jan 16, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1修改小程序用户 删掉黑名单缓存
parent
4bca082c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
UserModule.cs
Mall.Module.User/UserModule.cs
+15
-1
No files found.
Mall.Module.User/UserModule.cs
View file @
62300ef7
...
@@ -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>
...
...
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