Skip to content

Commit 81622aa

Browse files
committed
update
1 parent bfa6047 commit 81622aa

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/oauth/MiniOAuth.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace xutl\wechat\oauth;
99

1010
use xutl\authclient\WeChat;
11+
use Yii;
1112

1213
/**
1314
* 微信小程序定制
@@ -79,6 +80,22 @@ protected function defaultNormalizeUserAttributeMap()
7980
];
8081
}
8182

83+
/**
84+
* @inheritdoc
85+
*/
86+
protected function defaultName()
87+
{
88+
return 'wechat';
89+
}
90+
91+
/**
92+
* @inheritdoc
93+
*/
94+
protected function defaultTitle()
95+
{
96+
return Yii::t('app', 'Wechat');
97+
}
98+
8299
/**
83100
* @inheritdoc
84101
*/

src/oauth/OAuth.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@ protected function defaultNormalizeUserAttributeMap()
7373
];
7474
}
7575

76+
/**
77+
* @inheritdoc
78+
*/
79+
protected function defaultName()
80+
{
81+
return 'wechat';
82+
}
83+
84+
/**
85+
* @inheritdoc
86+
*/
87+
protected function defaultTitle()
88+
{
89+
return Yii::t('app', 'Wechat');
90+
}
91+
7692
/**
7793
* Composes user authorization URL.
7894
* @param array $params additional auth GET params.

0 commit comments

Comments
 (0)