Skip to content

Commit

Permalink
为mp和mini增加获取各自access_token的方法,解决因默认配置导致的无法获取正确access_token的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
abei2017 committed Jan 30, 2019
1 parent 9b7bd62 commit 584c463
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class Application extends Component {
],

'mp'=>[
'accessToken'=>'abei2017\wx\mp\core\AccessToken',
'base'=>'abei2017\wx\mp\core\Base', // 二维码
'qrcode'=>'abei2017\wx\mp\qrcode\Qrcode', // 二维码
'shorturl'=>'abei2017\wx\mp\qrcode\Shorturl', // 短地址
Expand All @@ -72,6 +73,7 @@ class Application extends Component {
],

'mini'=>[
'accessToken'=>'abei2017\wx\mini\core\AccessToken',
'user'=>'abei2017\wx\mini\user\User', // 会员
'pay'=>'abei2017\wx\mini\payment\Pay', // 支付
'qrcode'=>'abei2017\wx\mini\qrcode\Qrcode', // 二维码&小程序码
Expand Down
18 changes: 18 additions & 0 deletions src/mini/core/AccessToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/*
* This file is part of the abei2017/yii2-wx
*
* (c) abei <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace abei2017\wx\mini\core;

use abei2017\wx\core\AccessToken as CoreAccessToken;

class AccessToken extends CoreAccessToken {

}
18 changes: 18 additions & 0 deletions src/mp/core/AccessToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/*
* This file is part of the abei2017/yii2-wx
*
* (c) abei <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace abei2017\wx\mp\core;

use abei2017\wx\core\AccessToken as CoreAccessToken;

class AccessToken extends CoreAccessToken {

}

0 comments on commit 584c463

Please sign in to comment.