admin/app/common/modules/yop/sdk/YopResponse.php

68 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\common\modules\yop\sdk;
/**
* Created by PhpStorm.
* User: wilson
* Date: 16/7/22
* Time: 15:04
*/
class YopResponse{
/**
* 状态(SUCCESS/FAILURE)
*/
public $state;
/**
* 业务结果非简单类型解析后为LinkedHashMap
*/
public $result;
/**
* 时间戳
*/
public $ts;
/**
* 结果签名签名算法为Request指定算法示例SHA(<secret>stringResult<secret>)
*/
public $sign;
/**
* 错误信息
*/
public $error;
/**
* 字符串形式的业务结果
*/
public $stringResult;
/**
* 响应格式冗余字段跟Request的format相同用于解析结果
*/
public $format;
/**
* 业务结果签名是否合法,冗余字段
*/
public $validSign;
public $verSign;
public function __set($name, $value){
// TODO: Implement __set() method.
$this->$name = $value;
}
public function __get($name){
// TODO: Implement __get() method.
return $this->$name;
}
}