|
@@ -72,10 +72,6 @@ public class CmsUserMirrorShopServiceImpl implements CmsUserMirrorShopService {
|
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!shop.getStatus()) {
|
|
|
|
|
- throw BusinessRuntimeException.getInstance("您的店铺已被禁用");
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
String CACHE_LOGIN_KEY = RedisService.key.USER_MIRROR_SHOP_BACK_LOGIN_KEY.getName() + login;
|
|
String CACHE_LOGIN_KEY = RedisService.key.USER_MIRROR_SHOP_BACK_LOGIN_KEY.getName() + login;
|
|
|
Object o = redisService.get(CACHE_LOGIN_KEY);
|
|
Object o = redisService.get(CACHE_LOGIN_KEY);
|
|
|
Long expire = redisService.getExpire(CACHE_LOGIN_KEY);
|
|
Long expire = redisService.getExpire(CACHE_LOGIN_KEY);
|
|
@@ -105,10 +101,6 @@ public class CmsUserMirrorShopServiceImpl implements CmsUserMirrorShopService {
|
|
|
if (shop == null) {
|
|
if (shop == null) {
|
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (!shop.getStatus()) {
|
|
|
|
|
- throw BusinessRuntimeException.getInstance("您的店铺已被禁用");
|
|
|
|
|
- }
|
|
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -151,10 +143,6 @@ public class CmsUserMirrorShopServiceImpl implements CmsUserMirrorShopService {
|
|
|
if (shop == null) {
|
|
if (shop == null) {
|
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
throw BusinessRuntimeException.getInstance("您不是小店店铺主");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (!shop.getStatus()) {
|
|
|
|
|
- throw BusinessRuntimeException.getInstance("您的店铺已被禁用");
|
|
|
|
|
- }
|
|
|
|
|
redisService.del(CACHE_LOGIN_KEY);
|
|
redisService.del(CACHE_LOGIN_KEY);
|
|
|
return user;
|
|
return user;
|
|
|
}
|
|
}
|