记得上下班打卡 | git大法好,push需谨慎

Commit 08e756c9 authored by zhengfuxin's avatar zhengfuxin

修改bug

parent e88b5e82
......@@ -37,11 +37,10 @@ public class SmileNoLoginController {
@ApiOperation("获取用户状态,并返回票提")
public ResponseDto<SmileUserVO> getUser(String userId, String performanceId, String ticketId) {
SmileUserVO smileUserVO = (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId));
if (redisUtil.hasKey(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId))) {
if(null!=smileUserVO){
SmileAgentVo smileAgentVo = (SmileAgentVo) redisUtil.get(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId));
smileUserVO.setSmileAgentVo(smileAgentVo);
}
return ResponseDto.success(smileUserVO);
}
@PostMapping("getUserById")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment