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

Commit d11cc3aa authored by 胡佳晨's avatar 胡佳晨

修改 get 为 post

parent 852b39cb
...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation; ...@@ -11,6 +11,7 @@ import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -29,12 +30,12 @@ public class SmileNoLoginController { ...@@ -29,12 +30,12 @@ public class SmileNoLoginController {
@Autowired @Autowired
private SmileFrontService smileFrontService; private SmileFrontService smileFrontService;
@GetMapping("getUser") @PostMapping("getUser")
@ApiOperation("获取用户状态,并返回票提") @ApiOperation("获取用户状态,并返回票提")
public ResponseDto<SmileUserVO> getUser(String userId,String performanceId,String ticketId) { public ResponseDto<SmileUserVO> getUser(String userId, String performanceId, String ticketId) {
SmileUserVO smileUserVO= (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId)); SmileUserVO smileUserVO = (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId));
if(redisUtil.hasKey(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId))){ if (redisUtil.hasKey(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId))) {
SmileAgentVo smileAgentVo= (SmileAgentVo) redisUtil.get(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId)); SmileAgentVo smileAgentVo = (SmileAgentVo) redisUtil.get(SmileRedisConst.SMILE_AGENT.concat(performanceId).concat(":").concat(ticketId));
smileUserVO.setSmileAgentVo(smileAgentVo); smileUserVO.setSmileAgentVo(smileAgentVo);
} }
...@@ -42,5 +43,4 @@ public class SmileNoLoginController { ...@@ -42,5 +43,4 @@ public class SmileNoLoginController {
} }
} }
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