jjzjj

java - 使用 Retrofit 发送 POST 请求时无法获取 POST 参数

我正在使用Retrofit2.0.0向我的RESTAPI发送POST请求。privateclassAuthTaskextendsAsyncTask{protectedStringdoInBackground(String...params){Callcall=service.auth(params[0],params[1]);try{AuthauthResponse=call.execute().body();Log.i(AuthActivity.class.getName(),authResponse.public_key);}catch(IOExceptionex){Log.e(A