JsonObjet响应成功:是正确的,没有变化的活动 LoginRequest
import axios from 'axios'
...
handleSubmit = e => {
e.preventDefault()
const { email } = this.state
axios({
method: 'post',
url: `${process.env.REACT_APP_CLOUD_FUNCTION_ENDPOINT}`,
data: { email: email },
config: {
headers: {
'Content-Type': 'multipart/form-data'
}
}
})
.then(res => {
//do something with reponse here
})
.catch(error => {
console.error(error)
})
}
...
登录类,并且调试成功,请求响应正确,请帮助我
private static final String ruta = "http://xxx.000webhostapp.com/xxx";
private Map<String, String> parametros; public LoginRequest(String usuario, String clave, Response.Listener<String> listener){
super(Request.Method.POST, ruta, listener, null);
parametros = new HashMap<>();
parametros.put("usuario",usuario+"");
parametros.put("clave",clave+"");
}
@Override
protected Map<String, String> getParams() {
return parametros;
}
没有登录状态,成功就可以了