File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 26
26
* Class Wechat
27
27
* @property OAuth $oauth 公众平台
28
28
* @property OAuth $openOAuth 开放平台
29
+ * @property OAuth $miniProgram 小程序平台
29
30
* @property AccessToken $accessToken
30
31
* @property Js $js
31
32
* @property Notice $notice
@@ -136,6 +137,15 @@ public function getOpenOAuth()
136
137
return $ this ->get ('openOAuth ' );
137
138
}
138
139
140
+ /**
141
+ * @return object|OAuth
142
+ * @throws InvalidConfigException
143
+ */
144
+ public function getMiniProgram ()
145
+ {
146
+ return $ this ->get ('miniProgram ' );
147
+ }
148
+
139
149
/**
140
150
* @return object|Js
141
151
* @throws InvalidConfigException
@@ -209,6 +219,7 @@ public function coreComponents()
209
219
'accessToken ' => ['class ' => 'xutl\wechat\AccessToken ' ],
210
220
'oauth ' => ['class ' => 'xutl\wechat\oauth\OAuth ' ],
211
221
'openOAuth ' => ['class ' => 'xutl\wechat\oauth\OAuth ' ],
222
+ 'miniProgram ' => ['class ' => 'xutl\wechat\oauth\OAuth ' ],
212
223
'js ' => ['class ' => 'xutl\wechat\js\Js ' ],
213
224
'notice ' => ['class ' => 'xutl\wechat\notice\Notice ' ],
214
225
'url ' => ['class ' => 'xutl\wechat\url\Url ' ],
You can’t perform that action at this time.
0 commit comments