huanghongfa
2021-07-23 1936559ec4565a4e9ac7ecf2844eca06c9712905
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxOfficialApi.java
@@ -6,7 +6,6 @@
import com.panzhihua.common.utlis.StringUtils;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.units.qual.A;
import org.springframework.web.bind.annotation.*;
import java.io.*;
@@ -83,20 +82,21 @@
        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 = in.read(b)) != -1) {
            sb.append(new String(b,0,len));
        while((len = br.read()) != -1) {
            sb.append(new String(b,0,len,"utf-8"));
        }
        in.close();
        return sb.toString();
    }
    @ApiOperation(value = "拉取公众号列表")
    @GetMapping("/list/noToken")
    @GetMapping(value = "/list/noToken")
    public R pageDiscuss() throws Exception{
        WxOfficialApi officialApi = new WxOfficialApi();