|
@@ -9,12 +9,14 @@ import com.gree.mall.manager.bean.admin.reqDto.AdminCompanyWechatReqBean;
|
|
|
import com.gree.mall.manager.bean.admin.reqDto.AdminUserAddReqBean;
|
|
|
import com.gree.mall.manager.bean.admin.respDto.AdminCompanyWechatRespPageBean;
|
|
|
import com.gree.mall.manager.constant.Constant;
|
|
|
+import com.gree.mall.manager.enums.RedisPrefixEnum;
|
|
|
import com.gree.mall.manager.logic.admin.AdminCompanyWechatLogic;
|
|
|
import com.gree.mall.manager.logic.admin.AdminUserLogic;
|
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
|
import com.gree.mall.manager.helper.ResponseHelper;
|
|
|
import com.gree.mall.manager.plus.entity.AdminCompanyWechat;
|
|
|
import com.gree.mall.manager.plus.entity.AdminUser;
|
|
|
+import com.gree.mall.manager.utils.RedisUtil;
|
|
|
import com.gree.mall.manager.utils.excel.ExcelUtils;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -42,6 +44,8 @@ public class AdminUserController {
|
|
|
AdminCompanyWechatLogic adminCompanyWechatLogic;
|
|
|
@Autowired
|
|
|
RedisLockRegistry redisLockRegistry;
|
|
|
+ @Autowired
|
|
|
+ RedisUtil redisUtil;
|
|
|
|
|
|
|
|
|
|
|
@@ -268,5 +272,16 @@ public class AdminUserController {
|
|
|
// return ResponseHelper.success(bean);
|
|
|
// }
|
|
|
|
|
|
+ @ApiNotAuth
|
|
|
+ @PostMapping("/check/big/view/login")
|
|
|
+ @ApiOperation(value = "大屏校验登录")
|
|
|
+ public ResponseHelper checkBigViewLogin(@ApiParam(value = "jsmToken",required = true) @RequestParam String jsmToken)
|
|
|
+ throws Exception {
|
|
|
+ final boolean hasKey = redisUtil.hasKey(RedisPrefixEnum.TOKEN_MGR + jsmToken);
|
|
|
+ if (!hasKey) {
|
|
|
+ return ResponseHelper.error("无效token");
|
|
|
+ }
|
|
|
|
|
|
+ return ResponseHelper.success();
|
|
|
+ }
|
|
|
}
|