| 1234567891011121314151617181920212223 |
- package com.kede.common.controller;
- import com.kede.common.bo.Result;
- import com.kede.common.constant.ErrorConstants;
- import com.kede.core.shiro.token.TokenManager;
- public class CertifyApiController extends BaseApiController {
- public boolean checkAdminLogin(Result res) {
- if (TokenManager.getAdminToken() == null) {
- res.getError().add(buildError(ErrorConstants.NON_LOGIN, "找不到登录信息"));
- return false;
- }
- return true;
- }
-
- }
|