|
@@ -59,12 +59,18 @@ class AliCallBackController extends \Phalcon\Mvc\Controller |
|
|
switch ($params["service"] ?? "") { |
|
|
switch ($params["service"] ?? "") { |
|
|
case "alipay.planet.ecocampus.spi.school.queryFaceGroupKey": |
|
|
case "alipay.planet.ecocampus.spi.school.queryFaceGroupKey": |
|
|
$biz_content = json_decode($params["biz_content"], true); |
|
|
$biz_content = json_decode($params["biz_content"], true); |
|
|
|
|
|
|
|
|
$this->logger(["biz_content" => $biz_content["schoolCode"]], 'aliEcoCommonCallBack', true); |
|
|
|
|
|
|
|
|
$school_code = $biz_content["school_code"] ?? $biz_content["schoolCode"]; |
|
|
|
|
|
$this->logger(["biz_content" => $school_code], 'aliEcoCommonCallBack', true); |
|
|
//SPI::获取学校人脸库id |
|
|
//SPI::获取学校人脸库id |
|
|
$selfSupportForSchoolInfo = SelfSupportForSchoolInfo::findFirst("school_code = '{$biz_content["schoolCode"]}'"); |
|
|
|
|
|
|
|
|
$selfSupportForSchoolInfo = SelfSupportForSchoolInfo::findFirst("school_code = '{$school_code}'"); |
|
|
$this->logger(["info" => $selfSupportForSchoolInfo], 'aliEcoCommonCallBack', true); |
|
|
$this->logger(["info" => $selfSupportForSchoolInfo], 'aliEcoCommonCallBack', true); |
|
|
if (empty($selfSupportForSchoolInfo)) { |
|
|
if (empty($selfSupportForSchoolInfo)) { |
|
|
|
|
|
// $response = [ |
|
|
|
|
|
// "code" => "40000", |
|
|
|
|
|
// "msg" => "Business Failed", |
|
|
|
|
|
// "sub_code" => "20000", |
|
|
|
|
|
// "sub_msg" => "未查询到对应的学校记录", |
|
|
|
|
|
// ]; |
|
|
$response = [ |
|
|
$response = [ |
|
|
"code" => "10000", |
|
|
"code" => "10000", |
|
|
"msg" => "Success", |
|
|
"msg" => "Success", |
|
|