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; }