From 6569b2b36dedb45a1a2fac76ae1e0b67f5a9295b Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Tue, 23 Oct 2018 00:17:33 +0800 Subject: [PATCH] debug --- .../Application/Api/Controller/AlipayLifeController.class.php | 2 +- service/Application/Service/AlipayLifeService.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/Application/Api/Controller/AlipayLifeController.class.php b/service/Application/Api/Controller/AlipayLifeController.class.php index dff6266fa..b74fb3736 100644 --- a/service/Application/Api/Controller/AlipayLifeController.class.php +++ b/service/Application/Api/Controller/AlipayLifeController.class.php @@ -36,7 +36,7 @@ class AlipayLifeController extends CommonController { file_put_contents('./gggggg.txt', json_encode($_GET)); file_put_contents('./pppppp.txt', json_encode($_POST)); - file_put_contents('./ffffff.txt', file_get_contents("php://input")); + file_put_contents('./ffffff.txt', urldecode(file_get_contents("php://input"))); diff --git a/service/Application/Service/AlipayLifeService.class.php b/service/Application/Service/AlipayLifeService.class.php index c1a57ef13..d805644cf 100644 --- a/service/Application/Service/AlipayLifeService.class.php +++ b/service/Application/Service/AlipayLifeService.class.php @@ -26,7 +26,7 @@ class AlipayLifeService { return M('AlipayLife')->where(['appid'=>$params['appid']])->find(); } - return ''; + return null; } } ?> \ No newline at end of file