价格验证

This commit is contained in:
zren25
2025-05-21 11:06:58 +08:00
parent adccdec5a2
commit 01fed97d16

View File

@@ -65,8 +65,9 @@ public class RedisTestController {
}
@PostMapping("/del")
@ApiOperation(value = "del")
public ResultMsg<Object> del(@RequestBody String key) {
public ResultMsg<Object> del(@RequestBody String key, String password) {
log.info("aiAnalyze queryRedis : {}",key);
if(password.equals("kb2f78sQCUvg")){
redisTemplate.opsForZSet().removeRange(key, 0, -1);
Set<String> getRedisSet = redisTemplate.opsForZSet().range(key, 0, -1);
log.info("removeRange:{}" , getRedisSet);
@@ -75,6 +76,9 @@ public class RedisTestController {
log.info("delete:{}", getredisSet2);
return ResultMsg.ok(getredisSet2);
}
return ResultMsg.ok(null);
}
}