File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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 ' ],
You can’t perform that action at this time.
0 commit comments