|
@@ -17,10 +17,7 @@ import com.fdkankan.redis.util.RedisUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -57,7 +54,7 @@ public class LoginController extends BaseController {
|
|
throw new BusinessException(ResultCode.FD_ERROR);
|
|
throw new BusinessException(ResultCode.FD_ERROR);
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/fdLogout")
|
|
|
|
|
|
+ @GetMapping("/fdLogout")
|
|
public ResultData fdLogout(){
|
|
public ResultData fdLogout(){
|
|
String fdToken = String.format(RedisKey.TOKEN_V3,getToken());
|
|
String fdToken = String.format(RedisKey.TOKEN_V3,getToken());
|
|
redisUtil.del(fdToken);
|
|
redisUtil.del(fdToken);
|