add clear

This commit is contained in:
as2252258@163.com
2019-07-12 19:26:59 +08:00
parent 70eae1dc01
commit 4f0cfc5b59
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -241,7 +241,7 @@ abstract class Base
*/
protected function checkSign($result)
{
$data = $this->toArray($result);
$data = Help::toArray($result);
if (!isset($data['sign'])) {
return $data;
@@ -251,7 +251,7 @@ abstract class Base
unset($data['sign']);
$_sign = $this->sign($data);
$_sign = Help::sign($data, $this->key, $this->sign_type);
if ($sign != $_sign) {
return FALSE;
}
+4
View File
@@ -22,6 +22,10 @@ class Template extends Base
/** @var Template $instance */
private static $instance = null;
private function __construct()
{
}
/**
* @return Template
*/