|
@@ -30,6 +30,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.List;
|
|
|
|
|
|
import static com.ruoyi.common.constant.CommonConstants.LOGIN_USER_SMS;
|
|
|
+import static com.ruoyi.common.constant.CommonConstants.OPEN_DOOR;
|
|
|
|
|
|
/**
|
|
|
* 安防管理Controller
|
|
@@ -178,8 +179,8 @@ public class CameraController extends BaseController {
|
|
|
@GetMapping("/yzm/openDz")
|
|
|
public AjaxResult yzmOpenDz(EquipmentConfiguration equipmentConfiguration) {
|
|
|
//验证码校验
|
|
|
- Object cacheObject = redisCache.getCacheObject(LOGIN_USER_SMS + equipmentConfiguration.getPhoneNumber());
|
|
|
- if(ObjectUtils.isNotEmpty(cacheObject) || !equipmentConfiguration.getCode().equals(cacheObject)){
|
|
|
+ Object cacheObject = redisCache.getCacheObject(OPEN_DOOR + equipmentConfiguration.getPhoneNumber());
|
|
|
+ if(ObjectUtils.isEmpty(cacheObject) || !equipmentConfiguration.getCode().equals(cacheObject)){
|
|
|
throw new ServiceException("验证码错误");
|
|
|
}
|
|
|
redisCache.deleteObject(LOGIN_USER_SMS + equipmentConfiguration.getPhoneNumber());
|