DengBiao 1 year ago
parent
commit
148b85c252
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/applet/app/controllers/AliCallBackController.php

+ 4
- 1
src/applet/app/controllers/AliCallBackController.php View File

@@ -85,7 +85,10 @@ class AliCallBackController extends \Phalcon\Mvc\Controller
$this->logger($params, 'alipay.planet.ecocampus.spi.trade.pay.detail', true);
$biz_content = json_decode($params["biz_content"], true);
//获取用户身份信息
$userIdentityId = $biz_content["buyer_info"]["roster_code"] ?? 0; //身份id
$userIdentityId = 0;
if (isset($biz_content["buyer_info"])) {
$userIdentityId = $biz_content["buyer_info"]["roster_code"] ?? 0; //身份id
}
$selfSupportForSchoolInfo = UserIdentity::findFirst("id = '{$userIdentityId}'");
if (empty($selfSupportForSchoolInfo)) {
$response = [


Loading…
Cancel
Save