| | |
| | | bw.flush(); |
| | | |
| | | InputStream in = connection.getInputStream(); |
| | | BufferedReader br = new BufferedReader( |
| | | new InputStreamReader(in,"utf-8")); |
| | | byte[] b = new byte[100]; |
| | | int len = -1; |
| | | StringBuffer sb = new StringBuffer(); |
| | | while((len = br.read()) != -1) { |
| | | while((len = in.read(b)) != -1) { |
| | | sb.append(new String(b,0,len,"utf-8")); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "拉取公众号列表") |
| | | @GetMapping(value = "/list/noToken") |
| | | @GetMapping(value = "/list/noToken",produces="application/json;charset=utf-8") |
| | | public R pageDiscuss() throws Exception{ |
| | | WxOfficialApi officialApi = new WxOfficialApi(); |
| | | |