File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,10 @@ public function coreComponents()
219219 return [
220220 'accessToken ' => ['class ' => 'xutl\wechat\AccessToken ' ],
221221 'oauth ' => ['class ' => 'xutl\wechat\oauth\OAuth ' ],
222- 'openOAuth ' => ['class ' => 'xutl\wechat\oauth\OAuth ' ],
222+ 'openOAuth ' => [
223+ 'class ' => 'xutl\wechat\oauth\OAuth ' ,
224+ 'defaultName ' => 'wechat_open '
225+ ],
223226 'miniProgram ' => ['class ' => 'xutl\wechat\oauth\MiniOAuth ' ],
224227 'js ' => ['class ' => 'xutl\wechat\js\Js ' ],
225228 'notice ' => ['class ' => 'xutl\wechat\notice\Notice ' ],
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ class OAuth extends WeChat
4545 */
4646 public $ useOpenId = true ;
4747
48+ public $ defaultName = 'wechat ' ;
49+
4850 /**
4951 * @inheritdoc
5052 */
@@ -78,7 +80,7 @@ protected function defaultNormalizeUserAttributeMap()
7880 */
7981 protected function defaultName ()
8082 {
81- return ' wechat ' ;
83+ return $ this -> defaultName ;
8284 }
8385
8486 /**
You can’t perform that action at this time.
0 commit comments