| | |
| | | package com.panzhihua.grid_app.api; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.vos.LoginReturnVO; |
| | | import com.panzhihua.common.model.vos.LoginReturnsVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngStructAreaVO; |
| | | import com.panzhihua.common.service.auth.TokenService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.grid_app.model.vos.LoginBody; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * @author cedoo |
| | |
| | | } |
| | | R r = tokenService.loginGridApp(account, password); |
| | | if(R.isOk(r)){ |
| | | LoginReturnsVO returnsVO = JSONObject.parseObject(JSONObject.toJSONString(r.getData()), LoginReturnsVO.class); |
| | | LoginReturnsVO returnsVO = |
| | | JSONObject.parseObject(JSONObject.toJSONString(r.getData()), LoginReturnsVO.class); |
| | | //查询用户是否绑定网格,如果未绑定则提示用户 |
| | | R r1 = userService.getGridIsOk(returnsVO.getUserId()); |
| | | if(R.isOk(r1)){ |
| | |
| | | } |
| | | return tokenService.logout(token); |
| | | } |
| | | |
| | | |
| | | } |