From a1cb6530a1fa4cebd911f5cb14bd0e6500983dbe Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 24 Aug 2023 16:30:53 +0800 Subject: [PATCH] update --- .../Alipay/FaceCollectionController.php | 1 + .../Model/SelfSupportForUserFaceInfo.php | 106 ++++++++++++++++++ src/common/Service/Pay/AlipayK12Service.php | 1 + 3 files changed, 108 insertions(+) create mode 100644 src/common/Model/SelfSupportForUserFaceInfo.php diff --git a/src/applet/app/controllers/Alipay/FaceCollectionController.php b/src/applet/app/controllers/Alipay/FaceCollectionController.php index dd28154..d5327cc 100644 --- a/src/applet/app/controllers/Alipay/FaceCollectionController.php +++ b/src/applet/app/controllers/Alipay/FaceCollectionController.php @@ -24,6 +24,7 @@ class FaceCollectionController extends ControllerBase $config["ali_app_id"] = $args["config"]["ali_app_id"] ?? "2021004103604157"; $config["ali_private_key"] = $args["config"]["ali_private_key"] ?? "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCSGJ9ob4kmGy6y4YeynjKJc/LSg02EXjLErPZSfVrAOy69FTRfBDbazlxpfl6YCAxDdT5ZcspB5kS2XYOY4dmqqPmF4VywmcjmZM8IxZFl1p7YC8BOlP6JrzDPwVl3hn4z3Em1byj8ANLY/AxAaW9W43FSIX+cSfdJThTlxGcbHZFM3kqu++hgFc/E+ar1nB0garqh03ESjatO4b6tuHM57ou7M+fXsoIf3gaL1IDZpeAoRh5sLCBLIbLz55tF0DcOaFsK7NUImnabJDRtrM1IN0lDZkQYAzL+JFsAq+ncRJm60Vd1jq/pXML/cFVHQQgdnjUd2u2NJTSMiCKCftmdAgMBAAECggEARzt+LduEEXJbeJiCI1MC7QX9tSqUFyAevMpgZ6P7JZM1nLfECzfwzwqjAES/Nn1mDVYTCmXvu+XcRtadnWMxUAaHcwGIwgqZa8xnLa220OKuHETOhQIcgWFL+WAakS6gRgT4Y2BJqWV1aJqsFpPR15mZ3SO8JqXhznolsknqw8sO+DBJu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"] ?? "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzEC7+3O/Ej/gkXug6EgcCM3LjWzz11RR6ESo0KshGg3ODgM8DfdKDHD5b1T6VbcRGFobXQBqVtW008ocUnSOZzE67a73l6mKT3FbmhRsbrgwcUuOHEJUZaLFxPibJgFl7fkOjBcIiz+Wc+9VDTt8O4YxIZhAL6L6ppXcrVrCkOaiIiuHGyp7FjQ+5s3Lk3NLSO3TfXw1WEX2F+IHnw32ZN/FlC8rF8HVlgM0w/PZJ9RuadoLqn5H6z/iqrurbtxscnx0Qbdt8CBzREabJnWxHjxO936AXu9njIPvsXkTfaJJIXxRGGb0b8peSiCljwi8UEODe8mjl2c/LzLel6RuLQIDAQAB"; + $this->logger(["args" => $config], 'EducateSceneTokenCreateAction', true); $result = (new AlipayK12Service($config))->alipayCommerceEducateSceneTokenCreateRequest($args["sub_code"] ?? "SCHOOL_FACE_PASS_QUERY", $args["cert_type"] ?? "1", $args["cert_no"], $args["school_std_code"], $args["student_name"], $args["parent_phone"] ?? "", $args["out_user_id"], diff --git a/src/common/Model/SelfSupportForUserFaceInfo.php b/src/common/Model/SelfSupportForUserFaceInfo.php new file mode 100644 index 0000000..62edbf3 --- /dev/null +++ b/src/common/Model/SelfSupportForUserFaceInfo.php @@ -0,0 +1,106 @@ +setSource("self_support_for_user_face_info"); + } + + /** + * Allows to query a set of records that match the specified conditions + * + * @param mixed $parameters + * @return SelfSupportForSchoolInfo[]|SelfSupportForSchoolInfo|\Phalcon\Mvc\Model\ResultSetInterface + */ + public static function find($parameters = null): \Phalcon\Mvc\Model\ResultsetInterface + { + return parent::find($parameters); + } + + /** + * Allows to query the first record that match the specified conditions + * + * @param mixed $parameters + * @return SelfSupportForSchoolInfo|\Phalcon\Mvc\Model\ResultInterface|\Phalcon\Mvc\ModelInterface|null + */ + public static function findFirst($parameters = null): ?\Phalcon\Mvc\ModelInterface + { + return parent::findFirst($parameters); + } + +} diff --git a/src/common/Service/Pay/AlipayK12Service.php b/src/common/Service/Pay/AlipayK12Service.php index bc48e96..c9b68b3 100644 --- a/src/common/Service/Pay/AlipayK12Service.php +++ b/src/common/Service/Pay/AlipayK12Service.php @@ -95,6 +95,7 @@ class AlipayK12Service extends BaseService if (empty($operator_user_id)) { $params["operator_user_id"] = $operator_user_id; } + $this->logger($params, "alipayCommerceEducateSceneTokenCreateRequest"); $request->setBizContent(json_encode($params)); $response = self::$aopClient->execute($request); $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";