DengBiao преди 1 година
родител
ревизия
a1cb6530a1
променени са 3 файла, в които са добавени 108 реда и са изтрити 0 реда
  1. +1
    -0
      src/applet/app/controllers/Alipay/FaceCollectionController.php
  2. +106
    -0
      src/common/Model/SelfSupportForUserFaceInfo.php
  3. +1
    -0
      src/common/Service/Pay/AlipayK12Service.php

+ 1
- 0
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+QXn1HdntSGWrLU4GblPlYAs64y/MzPMUWfA4ShDRn9MZK6ypnh2GB5ezgnFxx1jRGOy96IqikI8f+M/CVdgzErLIl+qTd/IbfL8B6Gccb4ZwimL/x1H1bqYCA6xINMZLo5eDHCvBTU4AW7sItw1Q7MQ8l3wBl7hW62gQKBgQDZT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ibJgFl7fkOjBcIiz+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"],


+ 106
- 0
src/common/Model/SelfSupportForUserFaceInfo.php Целия файл

@@ -0,0 +1,106 @@
<?php
namespace SRVX\Model;
use Phalcon\Mvc\Model;


class SelfSupportForUserFaceInfo extends BasicModel
{

/**
*
* @var integer
*/
public $id;

/**
*
* @var int
*/
public $user_identity_id;

/**
*
* @var integer
*/
public $collect_face_type;

/**
*
* @var string
*/
public $school_code;

/**
*
* @var string
*/
public $school_std_code;

/**
*
* @var string
*/
public $parent_logon_id;

/**
*
* @var string
*/
public $user_id;

/**
*
* @var string
*/
public $school_face_pass_status;

/**
*
* @var string
*/
public $school_face_payment_status;

/**
*
* @var string
*/
public $updated_at;

/**
*
* @var string
*/
public $deleted_at;

/**
* Initialize method for model.
*/
public function initialize()
{
parent::initialize();
$this->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);
}

}

+ 1
- 0
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";


Зареждане…
Отказ
Запис