add 合规跳转商户端

master
luoyang 5 years ago
parent 17b5075d94
commit 1a737232b1

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.4.7</version> <version>1.4.8</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version> <jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -135,7 +135,7 @@ public class SignInStatusManagerImpl implements SignInStatusManager {
@Override @Override
public void managerAuthToClient(String managerStatusKey, String clientMoniker) { public void managerAuthToClient(String managerStatusKey, String clientMoniker) {
JSONObject manager = getCurrentManager(managerStatusKey); JSONObject manager = getCurrentManager(managerStatusKey);
if (manager != null && ManagerRole.ADMIN.hasRole(manager.getIntValue("role"))) { if (manager != null && (ManagerRole.ADMIN.hasRole(manager.getIntValue("role")) || ManagerRole.OPERATOR.hasRole(manager.getIntValue("role")))) {
String cacheKey = clientMockRedisKey(managerStatusKey); String cacheKey = clientMockRedisKey(managerStatusKey);
stringRedisTemplate.boundValueOps(cacheKey).set(clientMoniker, 30, TimeUnit.MINUTES); stringRedisTemplate.boundValueOps(cacheKey).set(clientMoniker, 30, TimeUnit.MINUTES);
return; return;

Loading…
Cancel
Save