Bläddra i källkod

update

master
DengBiao 1 år sedan
förälder
incheckning
3ca9cc72c5
1 ändrade filer med 5 tillägg och 1 borttagningar
  1. +5
    -1
      src/applet/app/controllers/AliCallBackController.php

+ 5
- 1
src/applet/app/controllers/AliCallBackController.php Visa fil

@@ -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",


Laddar…
Avbryt
Spara