From 3ca9cc72c5173232dae1146fb260280efd4baea0 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 4 Sep 2023 15:49:58 +0800 Subject: [PATCH] update --- src/applet/app/controllers/AliCallBackController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applet/app/controllers/AliCallBackController.php b/src/applet/app/controllers/AliCallBackController.php index b00dd21..307e832 100644 --- a/src/applet/app/controllers/AliCallBackController.php +++ b/src/applet/app/controllers/AliCallBackController.php @@ -83,18 +83,22 @@ class AliCallBackController extends \Phalcon\Mvc\Controller break; case "alipay.planet.ecocampus.spi.trade.pay.detail": //SPI::交易通知 - $this->logger($params, 'alipay.planet.ecocampus.spi.trade.pay.detail', true); + $this->logger(["params" => $params], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); $biz_content = json_decode($params["biz_content"], true); + $this->logger(["biz_content" => $biz_content], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); //获取用户身份信息 $userIdentityId = 0; if (isset($biz_content["buyer_info"])) { $userIdentityId = $biz_content["buyer_info"]["roster_code"] ?? 0; //身份id } $userIdentity = UserIdentity::findFirst("id = '{$userIdentityId}'"); + $this->logger(["userIdentity1" => $userIdentity], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); if (empty($userIdentity)) { $selfSupportForSchoolInfo = SelfSupportForUserFaceInfo::findFirst("user_id = '{$biz_content["buyer_id"]}'"); + $this->logger(["selfSupportForSchoolInfo" => $selfSupportForSchoolInfo], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); if (!$selfSupportForSchoolInfo) { $userIdentity = UserIdentity::findFirst("id = '{$selfSupportForSchoolInfo->user_identity_id}'"); + $this->logger(["userIdentity2" => $userIdentity], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); if (empty($userIdentity)) { $response = [ "code" => "40000",