CertifyApiController.java 456 B

1234567891011121314151617181920212223
  1. package com.kede.common.controller;
  2. import com.kede.common.bo.Result;
  3. import com.kede.common.constant.ErrorConstants;
  4. import com.kede.core.shiro.token.TokenManager;
  5. public class CertifyApiController extends BaseApiController {
  6. public boolean checkAdminLogin(Result res) {
  7. if (TokenManager.getAdminToken() == null) {
  8. res.getError().add(buildError(ErrorConstants.NON_LOGIN, "找不到登录信息"));
  9. return false;
  10. }
  11. return true;
  12. }
  13. }