diff --git a/mobile/source/helpers/test_dalianpay/library/Base.php b/mobile/source/helpers/test_dalianpay/library/Base.php index 3b3728b..84f4198 100644 --- a/mobile/source/helpers/test_dalianpay/library/Base.php +++ b/mobile/source/helpers/test_dalianpay/library/Base.php @@ -3,11 +3,11 @@ class Base { // 配置 - protected array $config; + protected $config; // 加解密类 - public object $Crypt; + public $Crypt; // 请求类 - public object $Request; + public $Request; /** @@ -29,7 +29,7 @@ class Base /** * 获取配置信息 - * @return Bool|Array + * @return bool|array */ public function getConfig() { diff --git a/mobile/source/helpers/test_dalianpay/library/Crypt.php b/mobile/source/helpers/test_dalianpay/library/Crypt.php index 9a74fe3..7feea7c 100644 --- a/mobile/source/helpers/test_dalianpay/library/Crypt.php +++ b/mobile/source/helpers/test_dalianpay/library/Crypt.php @@ -2,9 +2,9 @@ class Crypt { // 配置 - public array $config; + public $config; // 错误信息 - public string $err_msg = ''; + public $err_msg = ''; /** @@ -18,8 +18,8 @@ class Crypt /** * 数据校验 - * @param Array $data 待校验数据 - * @return Bool + * @param array $data 待校验数据 + * @return bool */ private function checkData(array $data) { @@ -42,8 +42,8 @@ class Crypt /** * 生成签名 - * @param Array $data 待签名数据 - * @return Bool|String + * @param array $data 待签名数据 + * @return bool|string */ public function makeSign(array $data) { @@ -81,9 +81,9 @@ class Crypt /** * 校验签名 - * @param Array $data 待校验数据 - * @param String $sign 签名 - * @return Bool + * @param array $data 待校验数据 + * @param string $sign 签名 + * @return bool */ public function checkSign(array $data, string $sign) { @@ -123,8 +123,8 @@ class Crypt /** * 加密交易报文 - * @param Array $data 待签名数据 - * @return Bool|String + * @param array $data 待签名数据 + * @return bool|string */ public function encryptTradeData(array $data) { @@ -169,8 +169,8 @@ class Crypt /** * 解密交易报文 - * @param String $data 加密的交易报文 - * @return Bool|Array + * @param string $data 加密的交易报文 + * @return bool|array */ public function decryptTradeData(string $data) { diff --git a/mobile/source/helpers/test_dalianpay/library/Request.php b/mobile/source/helpers/test_dalianpay/library/Request.php index f960fd2..f80339f 100644 --- a/mobile/source/helpers/test_dalianpay/library/Request.php +++ b/mobile/source/helpers/test_dalianpay/library/Request.php @@ -2,9 +2,9 @@ class Request { // 配置 - public array $config; + public $config; // 错误信息 - public string $err_msg = ''; + public $err_msg = ''; /** @@ -18,10 +18,10 @@ class Request /** * 发送curl请求 - * @param String $url 要请求的URL - * @param String $method 请求方法[get|post] - * @param String|Array $post_data 请求数据,模拟表单提交时为Array,提交JSON数据时为String - * @param String $data_type 数据类型[form|file|json|xml] + * @param string $url 要请求的URL + * @param string $method 请求方法[get|post] + * @param string|array $post_data 请求数据,模拟表单提交时为Array,提交JSON数据时为String + * @param string $data_type 数据类型[form|file|json|xml] */ private function curlRequest($url, $method, $post_data='', $data_type='form') { @@ -106,10 +106,10 @@ class Request /** * 发送报文 - * @param String $url 接口URL - * @param String $data 加密后的数据 - * @param String $sign 交易报文签名 - * @return Bool|String 成功时返回JSON字符串 + * @param string $url 接口URL + * @param string $data 加密后的数据 + * @param string $sign 交易报文签名 + * @return bool|string 成功时返回JSON字符串 */ public function send(string $url, string $data, string $sign) {