diff --git a/src/Kernel/ServerGuard.php b/src/Kernel/ServerGuard.php index 91bf4c6..93d8297 100644 --- a/src/Kernel/ServerGuard.php +++ b/src/Kernel/ServerGuard.php @@ -156,7 +156,6 @@ class ServerGuard * @throws BadRequestException * @throws \EasyAlipay\Kernel\Exceptions\InvalidArgumentException * @throws \EasyAlipay\Kernel\Exceptions\InvalidConfigException - * @throws InvalidSignException */ public function getMessage() { @@ -167,8 +166,8 @@ class ServerGuard if (!$this->rsaCheckV2($data, $sign, $publicKey, $signType)) { throw new InvalidSignException('签名失败'); } - $message['msg_method'] = $data['msg_method']; $message = json_decode($data['biz_content'], 1); + $message['msg_method'] = $data['msg_method']; // $message = $this->parseMessage($this->app['request']->getContent(false)); // // if (!is_array($message) || empty($message)) { diff --git a/src/OpenPlatform/Authorizer/Mini/Application.php b/src/OpenPlatform/Authorizer/Mini/Application.php index 89304be..f74f1c7 100644 --- a/src/OpenPlatform/Authorizer/Mini/Application.php +++ b/src/OpenPlatform/Authorizer/Mini/Application.php @@ -19,6 +19,7 @@ use EasyAlipay\Mini\Application as Mini; * @property \EasyAlipay\OpenPlatform\Authorizer\Mini\Experience\Client $experience * @property \EasyAlipay\OpenPlatform\Authorizer\Mini\Members\Client $members * @property \EasyAlipay\OpenPlatform\Authorizer\Mini\BaseInfo\Client $base_info + * @property \EasyAlipay\Base\Oauth\Client $oauth */ class Application extends Mini { @@ -35,7 +36,8 @@ class Application extends Mini Domain\ServiceProvider::class, Experience\ServiceProvider::class, Members\ServiceProvider::class, - BaseInfo\ServiceProvider::class + BaseInfo\ServiceProvider::class, + \EasyAlipay\Base\Oauth\ServiceProvider::class, ]; foreach ($providers as $provider) {