File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,10 @@ public function coreComponents()
219
219
return [
220
220
'accessToken ' => ['class ' => 'xutl\wechat\AccessToken ' ],
221
221
'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
+ ],
223
226
'miniProgram ' => ['class ' => 'xutl\wechat\oauth\MiniOAuth ' ],
224
227
'js ' => ['class ' => 'xutl\wechat\js\Js ' ],
225
228
'notice ' => ['class ' => 'xutl\wechat\notice\Notice ' ],
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ class OAuth extends WeChat
45
45
*/
46
46
public $ useOpenId = true ;
47
47
48
+ public $ defaultName = 'wechat ' ;
49
+
48
50
/**
49
51
* @inheritdoc
50
52
*/
@@ -78,7 +80,7 @@ protected function defaultNormalizeUserAttributeMap()
78
80
*/
79
81
protected function defaultName ()
80
82
{
81
- return ' wechat ' ;
83
+ return $ this -> defaultName ;
82
84
}
83
85
84
86
/**
You can’t perform that action at this time.
0 commit comments