diff --git a/src/applet/app/controllers/AliCallBackController.php b/src/applet/app/controllers/AliCallBackController.php index b80c8b4..c8b6538 100644 --- a/src/applet/app/controllers/AliCallBackController.php +++ b/src/applet/app/controllers/AliCallBackController.php @@ -94,7 +94,7 @@ class AliCallBackController extends \Phalcon\Mvc\Controller $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"]}'"); + $selfSupportForSchoolInfo = SelfSupportForUserFaceInfo::findFirst("user_id = '{$biz_content["buyer_id"]}' and school_code = '{$biz_content["buyer_info"]["school_code"]}'"); $this->logger(["selfSupportForSchoolInfo" => $selfSupportForSchoolInfo], 'alipay.planet.ecocampus.spi.trade.pay.detail', true); if (!empty($selfSupportForSchoolInfo)) { $userIdentity = UserIdentity::findFirst("id = '{$selfSupportForSchoolInfo->user_identity_id}'");