Browse Source

增加第三方登陆

master
wuliangbo 5 years ago
parent
commit
08b147adec
  1. 3
      src/Kernel/ServerGuard.php
  2. 4
      src/OpenPlatform/Authorizer/Mini/Application.php

3
src/Kernel/ServerGuard.php

@ -156,7 +156,6 @@ class ServerGuard @@ -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 @@ -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)) {

4
src/OpenPlatform/Authorizer/Mini/Application.php

@ -19,6 +19,7 @@ use EasyAlipay\Mini\Application as Mini; @@ -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 @@ -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) {

Loading…
Cancel
Save