Commit d35d7530 by yangyang

第三方token获取提交(重庆)

parent 282a8582
......@@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
@Api(tags = "刑侦服务token")
......@@ -36,7 +38,7 @@ public class CqTokenController {
private JwtUser jwtUser = new JwtUser();
@PostMapping("getThirdToken")
@ApiOperation(value = "获取三方token")
@ApiOperation(value = "获取token")
public MapRestResult getThirdToken(@RequestBody TokenThirdParams tokenThirdParams) {
String token = null;
QueryWrapper queryWrapper = new QueryWrapper();
......@@ -60,6 +62,9 @@ public class CqTokenController {
return new MapRestResult(201, "error", 1, "token获取失败!");
}
}
return new MapRestResult(200, "OK", 1, token);
Map mapResult = new HashMap();
mapResult.put("token",token);
mapResult.put("expire","86400");
return new MapRestResult(200, "OK", 1, mapResult);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment