From 4784354c22c6f5f7cd95cba699333dc7156a97d3 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 25 Oct 2019 15:20:52 +0800 Subject: [PATCH] add clear --- qq/Account.php | 2 +- qq/{Wx.php => QqSDK.php} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename qq/{Wx.php => QqSDK.php} (97%) diff --git a/qq/Account.php b/qq/Account.php index 9d0601f..2717903 100644 --- a/qq/Account.php +++ b/qq/Account.php @@ -90,7 +90,7 @@ class Account extends Miniprogarampage */ public function decode($encryptedData, $iv, $sessionKey, $asArray = false) { - $config = Wx::getMiniProGaRamPage()->getConfig(); + $config = QqSDK::getMiniProGaRamPage()->getConfig(); if (strlen($sessionKey) != 24) { throw new \Exception('encodingAesKey 非法', $this->IllegalAesKey); } diff --git a/qq/Wx.php b/qq/QqSDK.php similarity index 97% rename from qq/Wx.php rename to qq/QqSDK.php index 202f969..598065d 100644 --- a/qq/Wx.php +++ b/qq/QqSDK.php @@ -6,7 +6,7 @@ namespace qq; use wchat\WxClient; use wchat\Config; -class Wx +class QqSDK { /** @var static $instance */ @@ -21,7 +21,7 @@ class Wx public static function getMiniProGaRamPage() { if (static::$instance === null) { - static::$instance = new Wx(); + static::$instance = new QqSDK(); } return static::$instance; }