Skip to content

Commit e398e12

Browse files
committed
增加小程序
1 parent 9d5f281 commit e398e12

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Wechat.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* Class Wechat
2727
* @property OAuth $oauth 公众平台
2828
* @property OAuth $openOAuth 开放平台
29+
* @property OAuth $miniProgram 小程序平台
2930
* @property AccessToken $accessToken
3031
* @property Js $js
3132
* @property Notice $notice
@@ -136,6 +137,15 @@ public function getOpenOAuth()
136137
return $this->get('openOAuth');
137138
}
138139

140+
/**
141+
* @return object|OAuth
142+
* @throws InvalidConfigException
143+
*/
144+
public function getMiniProgram()
145+
{
146+
return $this->get('miniProgram');
147+
}
148+
139149
/**
140150
* @return object|Js
141151
* @throws InvalidConfigException
@@ -209,6 +219,7 @@ public function coreComponents()
209219
'accessToken' => ['class' => 'xutl\wechat\AccessToken'],
210220
'oauth' => ['class' => 'xutl\wechat\oauth\OAuth'],
211221
'openOAuth' => ['class' => 'xutl\wechat\oauth\OAuth'],
222+
'miniProgram' => ['class' => 'xutl\wechat\oauth\OAuth'],
212223
'js' => ['class' => 'xutl\wechat\js\Js'],
213224
'notice' => ['class' => 'xutl\wechat\notice\Notice'],
214225
'url' => ['class' => 'xutl\wechat\url\Url'],

0 commit comments

Comments
 (0)