NoHttp icon indicating copy to clipboard operation
NoHttp copied to clipboard

同步请求数据返回为 “”, 同样的url 异步请求没问题

Open zj2050 opened this issue 4 years ago • 0 comments

url=http://api.baidu.com/getDType?smark=SX0069,CV5301.06,CV4202.05,SX0028&siteauth=123

        JsonArrayRequest synrequest = new JsonArrayRequest(url, RequestMethod.GET);
        Response<JSONArray> response = NoHttp.startRequestSync(synrequest);
        if (response.isSucceed()) {
            // 请求成功
        } else {
            // 请求失败
        }

response 的返回为 “” 哪儿有错误吗?必须用同步请求

zj2050 avatar Mar 25 '20 04:03 zj2050