|
|
|
@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
@@ -8,6 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import vip.xumy.core.pojo.com.BaseResponse; |
|
|
|
|
import vip.xumy.core.utils.StringUtil; |
|
|
|
|
import vip.xumy.idle.server.pojo.SocketMsg; |
|
|
|
|
import vip.xumy.idle.server.pojo.User; |
|
|
|
|
import vip.xumy.idle.server.service.UserService; |
|
|
|
@ -51,6 +52,9 @@ public class PublicController {
@@ -51,6 +52,9 @@ public class PublicController {
|
|
|
|
|
@GetMapping("login") |
|
|
|
|
public BaseResponse getLogin() { |
|
|
|
|
User user = LoginUtil.getUserInfo(); |
|
|
|
|
if (StringUtil.isEmpty(user.getUsername())) { |
|
|
|
|
return new BaseResponse(null); |
|
|
|
|
} |
|
|
|
|
return new BaseResponse(user); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|