|
@@ -127,6 +127,9 @@ public class TeacherController extends BaseController {
|
|
|
@GetMapping("/queryHotTeacherList")
|
|
|
public HttpResponseResult<List<HotTeacherVo>> queryHotTeacherList() {
|
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
+ if (user == null || null == user.getId()) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
+ }
|
|
|
Long userId = null;
|
|
|
if (user != null && null != user.getId()) {
|
|
|
userId = user.getId();
|