We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b07292a commit ae385dcCopy full SHA for ae385dc
src/oauth/OAuth.php
@@ -39,6 +39,22 @@ class OAuth extends OAuth2
39
*/
40
public $useOpenId = true;
41
42
+ /**
43
+ * @inheritdoc
44
+ */
45
+ protected function defaultName()
46
+ {
47
+ return 'wechat';
48
+ }
49
+
50
51
52
53
+ protected function defaultTitle()
54
55
+ return '微信';
56
57
58
/**
59
* 初始化组件
60
@@ -155,7 +171,7 @@ public function getOpenId()
155
171
156
172
protected function initUserAttributes()
157
173
{
158
- return $this->api('sns/userinfo', 'GET',[
174
+ return $this->api('sns/userinfo', 'GET', [
159
175
//'lang'=>
160
176
]);
161
177
}
0 commit comments