debug
parent
dd77490934
commit
db1bc52e4a
|
|
@ -34,25 +34,15 @@ class AlipayLifeController extends CommonController
|
||||||
*/
|
*/
|
||||||
public function Index()
|
public function Index()
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
file_put_contents('./gggggg.php', "<?php\n\rreturn ".var_export($_GET, true).";\n\r?>");
|
file_put_contents('./gggggg.php', "<?php\n\rreturn ".var_export($_GET, true).";\n\r?>");
|
||||||
file_put_contents('./pppppp.php', "<?php\n\rreturn ".var_export($_POST, true).";\n\r?>");
|
file_put_contents('./pppppp.php', "<?php\n\rreturn ".var_export($_POST, true).";\n\r?>");
|
||||||
// file_put_contents('./ffffff.txt', urldecode(file_get_contents("php://input")));
|
// file_put_contents('./ffffff.txt', urldecode(file_get_contents("php://input")));
|
||||||
|
**/
|
||||||
|
|
||||||
|
|
||||||
// 参数
|
// 参数
|
||||||
$params = $_POST;
|
$params = $_POST;
|
||||||
//file_put_contents('./pppppp.txt', json_encode($_POST));
|
|
||||||
if(empty($params))
|
|
||||||
{
|
|
||||||
$input = file_get_contents("php://input");
|
|
||||||
//file_put_contents('./pppppp.txt', file_get_contents("php://input"));
|
|
||||||
|
|
||||||
if(!empty($input))
|
|
||||||
{
|
|
||||||
$params = iconv("GBK", "UTF-8", urldecode($input));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(empty($params['service']))
|
if(empty($params['service']))
|
||||||
{
|
{
|
||||||
die('service error');
|
die('service error');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue