From 584c463de4b176789697288f2dce99500cae40f0 Mon Sep 17 00:00:00 2001 From: abei2017 <2479161482@qq.com> Date: Wed, 30 Jan 2019 23:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BAmp=E5=92=8Cmini=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=90=84=E8=87=AAaccess=5Ftoken=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=9B=A0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=85=8D=E7=BD=AE=E5=AF=BC=E8=87=B4=E7=9A=84=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=8E=B7=E5=8F=96=E6=AD=A3=E7=A1=AEaccess=5Ftoken?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Application.php | 2 ++ src/mini/core/AccessToken.php | 18 ++++++++++++++++++ src/mp/core/AccessToken.php | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/mini/core/AccessToken.php create mode 100644 src/mp/core/AccessToken.php diff --git a/src/Application.php b/src/Application.php index b76ec33..81684ac 100644 --- a/src/Application.php +++ b/src/Application.php @@ -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', // 短地址 @@ -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', // 二维码&小程序码 diff --git a/src/mini/core/AccessToken.php b/src/mini/core/AccessToken.php new file mode 100644 index 0000000..458a1cd --- /dev/null +++ b/src/mini/core/AccessToken.php @@ -0,0 +1,18 @@ + + * + * 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 { + +} \ No newline at end of file diff --git a/src/mp/core/AccessToken.php b/src/mp/core/AccessToken.php new file mode 100644 index 0000000..4832fc9 --- /dev/null +++ b/src/mp/core/AccessToken.php @@ -0,0 +1,18 @@ + + * + * 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 { + +} \ No newline at end of file