Commit 7817340a by libai

测试

parent cd6ea588
Showing with 2 additions and 8 deletions
...@@ -1019,14 +1019,8 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数 ...@@ -1019,14 +1019,8 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数
// Get Profile // Get Profile
return twitter.api('/me') return twitter.api('/me')
}, log).then(function (p) { }, log).then(function (p) {
console.log(r2) var r2 = JSON.parse(localStorage.getItem('hello'));
var response = {'id':p.id,'first_name':p.name,'last_name':p.last_name,'picture':p.thumbnail,'link':'https://twitter.com/'+p.screen_name,'login_type':'twitter'}; console.log(r2.twitter)
console.dir(response);
// var r2 = JSON.parse(localStorage.getItem('hello'));
// console.dir(p);
// console.log(r2.twitter)
//已获取用户信息,在此处理 //已获取用户信息,在此处理
// window.location.href = "footseenlogin://" + encodeURIComponent("www.firefly.live?secret=" + r2.twitter.oauth_token_secret + "&token=" + r2.twitter.oauth_token + "&name=" + p.name + "&profileImageUrl=" + p.thumbnail + "&id=" + r2.twitter.user_id); // window.location.href = "footseenlogin://" + encodeURIComponent("www.firefly.live?secret=" + r2.twitter.oauth_token_secret + "&token=" + r2.twitter.oauth_token + "&name=" + p.name + "&profileImageUrl=" + p.thumbnail + "&id=" + r2.twitter.user_id);
// window.location.href = ; // window.location.href = ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment