Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zj2050 opened this issue Mar 25, 2020 · 0 comments
Open

Comments

@zj2050
Copy link

zj2050 commented Mar 25, 2020

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 的返回为 “”
哪儿有错误吗?必须用同步请求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant