Php 如何在安装2 sents的服务器上获取密钥
我正在尝试获取@POST的php中的密钥,它在android中对sents进行了改造 这是我的密码 爪哇 其他我得到错误:$\u POST中的body未定义请尝试Php 如何在安装2 sents的服务器上获取密钥,php,android,retrofit2,Php,Android,Retrofit2,我正在尝试获取@POST的php中的密钥,它在android中对sents进行了改造 这是我的密码 爪哇 其他我得到错误:$\u POST中的body未定义请尝试print\r($\u POST)查找POST数据。您将能够检查post请求中设置的所有数据。答案是:Array() public interface GetUser{ @POST("tronecity/signup.php") Call<User> createUser(@Body User user);
print\r($\u POST)
查找POST数据。您将能够检查post请求中设置的所有数据。答案是:Array()
public interface GetUser{
@POST("tronecity/signup.php")
Call<User> createUser(@Body User user);
}
echo json_decode($_POST['body']);