protected Integer doInBackground(String... params)
{
String url="http://ff4627de.ngrok.io/"+"login.php";
String status="";
int id=0;
try {
HttpRequest httpRequest=new HttpRequest(url);
HashMap<String ,String> value=new HashMap<>();
value.put("email",params[0]);
value.put("password",params[1]);
JSONObject jsonObject=httpRequest.prepare(HttpRequest.Method.POST)
.withData(value).sendAndReadJSON();
新HttpRequest(url)
和.prepare()
方法以及.Method
出错。它表明它无法解决它们。