Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在安装2 sents的服务器上获取密钥_Php_Android_Retrofit2 - Fatal编程技术网

Php 如何在安装2 sents的服务器上获取密钥

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);

我正在尝试获取@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);
}
echo json_decode($_POST['body']);