Skip to content

Commit

Permalink
add tip text
Browse files Browse the repository at this point in the history
  • Loading branch information
ideal committed Jun 16, 2015
1 parent ad01297 commit 124db77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions upload/src/applications/u/service/PwThirdLoginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ class PwThirdLoginService
'accesstoken' => 'https://graph.qq.com/oauth2.0/token?grant_type=authorization_code&client_id=%s&client_secret=%s&code=%s&redirect_uri=%s',
'openid' => 'https://graph.qq.com/oauth2.0/me?access_token=%s',
'userinfo' => 'https://graph.qq.com/user/get_user_info?access_token=%s&oauth_consumer_key=%s&openid=%s',
'text' => '使用QQ帐号登录',
),
// See http://open.weibo.com/wiki/%E9%A6%96%E9%A1%B5
'weibo' => array(
'img' => 'http://oss.aliyuncs.com/phpwind-image/be7945e0d9521e74b8130a138b8694df.png',
'authorize' => 'https://api.weibo.com/oauth2/authorize?client_id=%s&redirect_uri=%s&scope=email&state=phpwind&display=default',
'accesstoken' => 'https://api.weibo.com/oauth2/access_token',
'userinfo' => 'https://api.weibo.com/2/users/show.json?access_token=%s&uid=%s',
'text' => '使用新浪微博帐号登录',
),
);

Expand Down
2 changes: 1 addition & 1 deletion upload/template/u/login.htm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2 class="reg_head">{$_errMsg}</h2>
<!--#
foreach($thirdlogin as $p) {
#-->
<a href="{$p['url']}"><img src="{$p['img']}" /></a>
<a href="{$p['url']}" alt="{$p['text']}"><img src="{$p['img']}" /></a>
<!--#
}
#-->
Expand Down

0 comments on commit 124db77

Please sign in to comment.