Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36056049
authored
Jun 21, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
b38bd36a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
yazhaiTest/lib/login.js
yazhaiTest/pc.html
yazhaiTest/lib/login.js
View file @
36056049
...
...
@@ -1008,7 +1008,7 @@ hello.init(
{
'twitter'
:
'cEGECNgXN3ZN00r3Zb82vwh55'
},
//App_key
{
oauth_proxy
:
'https://auth-server.herokuapp.com/proxy'
,
redirect_uri
:
'https://www.footseen.xyz/'
redirect_uri
:
'https://www.footseen.xyz/
yazhaiTest/pc.html
'
});
function
login_twitter
(
network
)
{
//登录方法,并将twitter 作为参数传入
// Twitter instance
...
...
@@ -1019,13 +1019,14 @@ function login_twitter(network) { //登录方法,并将twitter 作为参数
// Get Profile
return
twitter
.
api
(
'me'
)
},
log
).
then
(
function
(
p
)
{
console
.
log
(
r2
)
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);
//
if (p) {
//
window.location.href = ;
// }
},
log
);
}
\ No newline at end of file
yazhaiTest/pc.html
View file @
36056049
...
...
@@ -19,6 +19,7 @@
<link
rel=
"stylesheet"
href=
"css/login.css?v=20220620"
>
<script
src=
"https://accounts.google.com/gsi/client"
async
defer
></script>
<script
src=
"https://adodson.com/hello.js/dist/hello.all.js"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
src=
"http://kjur.github.io/jsrsasign/jsrsasign-latest-all-min.js"
></script>
</head>
<body
style=
"background: #F4F5F8"
>
...
...
@@ -323,6 +324,7 @@ $(function(){
// html+='
<
meta
name
=
"google-signin-client_id"
content
=
"534183685500-ag0vai0jh6todldi4rg6lvp0gcsojk0n.apps.googleusercontent.com"
>
'
// $("head").append(html)
// $(".google-login").attr("src","https://apis.google.com/js/platform.js")
loginGo()
var scrollOk=true;
var pageNumber=1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment