ソースを参照

update

master
DengBiao 1年前
コミット
3ca9cc72c5
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      src/applet/app/controllers/AliCallBackController.php

+ 5
- 1
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",


読み込み中…
キャンセル
保存