Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pidan
/
FuSiLive
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
9a79f11d
authored
Dec 19, 2025
by
ludi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复谷歌和line登录
parent
89b2d797
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
56 deletions
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Tools/FUSSocialLogin/FUSThirdAccountLoginHelper.m
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Tools/ThirdParty/TwitterHelper/LineHelper/FUSLineHelper.swift
FuSiLive.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSChatCenterModule/FUSChatCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSShowRoomModule/FUSShowRoomModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Modules/FUSUserCenterModule/FUSUserCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
Pods/Pods.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Tools/FUSSocialLogin/FUSThirdAccountLoginHelper.m
View file @
9a79f11d
...
@@ -347,15 +347,20 @@ NSString * const FUSSocializedIsSafariLoginKey = @"FUSSocializedIsSafariLoginKey
...
@@ -347,15 +347,20 @@ NSString * const FUSSocializedIsSafariLoginKey = @"FUSSocializedIsSafariLoginKey
}
else
{
}
else
{
[
FUSHttpManager
httpGetRequestWithUrl
:
@"https://www.google.com/"
params
:
nil
headers
:
nil
timeout
:
6
requestType
:
HTTPRequestType
responseType
:
HTTPResponseType
contentTypes
:
nil
success
:^
(
NSURLSessionDataTask
*
operation
,
id
responseObject
)
{
NSArray
*
currentScopes
=
[
GIDSignIn
sharedInstance
].
scopes
;
NSArray
*
currentScopes
=
[
GIDSignIn
sharedInstance
].
scopes
;
[
GIDSignIn
sharedInstance
].
scopes
=
[
currentScopes
arrayByAddingObject
:
@"https://www.googleapis.com/auth/userinfo.profile"
];
[
GIDSignIn
sharedInstance
].
scopes
=
[
currentScopes
arrayByAddingObject
:
@"https://www.googleapis.com/auth/userinfo.profile"
];
[
GIDSignIn
sharedInstance
].
presentingViewController
=
viewController
;
[
GIDSignIn
sharedInstance
].
presentingViewController
=
viewController
;
[[
GIDSignIn
sharedInstance
]
signIn
];
[[
GIDSignIn
sharedInstance
]
signIn
];
}
failure
:^
(
NSURLSessionDataTask
*
operation
,
NSError
*
error
)
{
// [FUSHttpManager httpGetRequestWithUrl:@"https://www.google.com/" params:nil headers:nil timeout:6 requestType:HTTPRequestType responseType:HTTPResponseType contentTypes:nil success:^(NSURLSessionDataTask *operation, id responseObject) {
if
(
failure
)
failure
(
error
);
// NSArray *currentScopes = [GIDSignIn sharedInstance].scopes;
[
FUSDialogView
fus_showDialog
:
@"can not connect to Google"
autoDismissTime
:
2
];
// [GIDSignIn sharedInstance].scopes = [currentScopes arrayByAddingObject:@"https://www.googleapis.com/auth/userinfo.profile"];
}];
// [GIDSignIn sharedInstance].presentingViewController = viewController;
// [[GIDSignIn sharedInstance] signIn];
// } failure:^(NSURLSessionDataTask *operation, NSError *error) {
// if (failure) failure(error);
// [FUSDialogView fus_showDialog:@"can not connect to Google" autoDismissTime:2];
// }];
}
}
}
}
...
...
DevelopmentPods/FUSFoundation/FUSFoundation/Classes/FUSFoundation/Tools/ThirdParty/TwitterHelper/LineHelper/FUSLineHelper.swift
View file @
9a79f11d
...
@@ -25,48 +25,85 @@ import LineSDK
...
@@ -25,48 +25,85 @@ import LineSDK
/// Line 登录
/// Line 登录
public
func
fus_lineLogin
(
success
successHandle
:
loginSuccessBlock
?,
failure
failureHandle
:
loginFailureBlock
?)
{
public
func
fus_lineLogin
(
success
successHandle
:
loginSuccessBlock
?,
failure
failureHandle
:
loginFailureBlock
?)
{
FUSHttpManager
.
httpGetRequest
(
withUrl
:
"https://www.google.com/"
,
params
:
nil
,
headers
:
nil
,
timeout
:
6
,
requestType
:
HTTPRequestType
,
responseType
:
HTTPResponseType
,
contentTypes
:
nil
)
{
_
,
_
in
LoginManager
.
shared
.
login
(
permissions
:
[
.
profile
,
.
openID
],
in
:
nil
)
{[
weak
self
]
result
in
LoginManager
.
shared
.
login
(
permissions
:
[
.
profile
,
.
openID
],
in
:
nil
)
{[
weak
self
]
result
in
switch
result
{
switch
result
{
case
.
success
(
let
success
):
case
.
success
(
let
success
):
let
token
=
success
.
accessToken
.
value
let
token
=
success
.
accessToken
.
value
let
displayName
=
success
.
userProfile
?
.
displayName
let
displayName
=
success
.
userProfile
?
.
displayName
var
pictureUrlStr
:
String
?
var
pictureUrlStr
:
String
?
if
let
pictureUrl
=
success
.
userProfile
?
.
pictureURL
{
if
let
pictureUrl
=
success
.
userProfile
?
.
pictureURL
{
pictureUrlStr
=
pictureUrl
.
absoluteString
pictureUrlStr
=
pictureUrl
.
absoluteString
}
}
var
completeDict
=
[
String
:
String
]()
var
completeDict
=
[
String
:
String
]()
completeDict
[
FUSSocializedFetchIDTokenKey
]
=
token
completeDict
[
FUSSocializedFetchIDTokenKey
]
=
token
if
let
userId
=
success
.
userProfile
?
.
userID
{
if
let
userId
=
success
.
userProfile
?
.
userID
{
completeDict
[
FUSSocializedFetchOpenIdKey
]
=
userId
completeDict
[
FUSSocializedFetchOpenIdKey
]
=
userId
}
}
if
let
pictureUrlStr
=
pictureUrlStr
{
if
let
pictureUrlStr
=
pictureUrlStr
{
completeDict
[
FUSSocializedFetchFacepathKey
]
=
pictureUrlStr
completeDict
[
FUSSocializedFetchFacepathKey
]
=
pictureUrlStr
}
}
if
let
displayName
=
success
.
userProfile
?
.
displayName
{
if
let
displayName
=
success
.
userProfile
?
.
displayName
{
completeDict
[
FUSSocializedFetchNikeNameKey
]
=
displayName
completeDict
[
FUSSocializedFetchNikeNameKey
]
=
displayName
}
}
completeDict
[
FUSSocializedFetchSexKey
]
=
"1"
completeDict
[
FUSSocializedFetchSexKey
]
=
"1"
// LINE Opentype 为8
// LINE Opentype 为8
completeDict
[
FUSSocializedFetchOpenTypeKey
]
=
"8"
completeDict
[
FUSSocializedFetchOpenTypeKey
]
=
"8"
successHandle
?(
completeDict
)
successHandle
?(
completeDict
)
case
.
failure
(
let
failure
):
case
.
failure
(
let
failure
):
// self?.currentLoginModel?.completionHandler?(false, failure.failureReason, [:])
// self?.currentLoginModel?.completionHandler?(false, failure.failureReason, [:])
// self?.currentLoginModel = nil
// self?.currentLoginModel = nil
let
error
:
NSError
=
.
init
(
domain
:
failure
.
failureReason
??
""
,
code
:
failure
.
errorCode
)
let
error
:
NSError
=
.
init
(
domain
:
failure
.
failureReason
??
""
,
code
:
failure
.
errorCode
)
failureHandle
?(
error
)
failureHandle
?(
error
)
}
}
}
}
failure
:
{
_
,
error
in
failureHandle
?(
error
)
FUSDialogView
.
fus_showDialog
(
"can not connect to Line"
)
}
}
// FUSHttpManager.httpGetRequest(withUrl: "https://www.google.com/", params: nil, headers: nil, timeout: 6, requestType: HTTPRequestType, responseType: HTTPResponseType, contentTypes: nil) { _, _ in
//
// LoginManager.shared.login(permissions: [.profile, .openID], in: nil) {[weak self] result in
// switch result {
// case .success(let success):
// let token = success.accessToken.value
//
// let displayName = success.userProfile?.displayName
// var pictureUrlStr: String?
// if let pictureUrl = success.userProfile?.pictureURL {
// pictureUrlStr = pictureUrl.absoluteString
// }
//
// var completeDict = [String: String]()
//
//
// completeDict[FUSSocializedFetchIDTokenKey] = token
// if let userId = success.userProfile?.userID {
// completeDict[FUSSocializedFetchOpenIdKey] = userId
// }
// if let pictureUrlStr = pictureUrlStr {
// completeDict[FUSSocializedFetchFacepathKey] = pictureUrlStr
// }
// if let displayName = success.userProfile?.displayName {
// completeDict[FUSSocializedFetchNikeNameKey] = displayName
// }
// completeDict[FUSSocializedFetchSexKey] = "1"
// // LINE Opentype 为8
// completeDict[FUSSocializedFetchOpenTypeKey] = "8"
// successHandle?(completeDict)
// case .failure(let failure):
//// self?.currentLoginModel?.completionHandler?(false, failure.failureReason, [:])
//// self?.currentLoginModel = nil
// let error: NSError = .init(domain: failure.failureReason ?? "", code: failure.errorCode)
// failureHandle?(error)
// }
// }
//
// } failure: { _, error in
// failureHandle?(error)
// FUSDialogView.fus_showDialog("can not connect to Line")
// }
}
}
}
}
FuSiLive.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9a79f11d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<
k
e
y
>
NotificationService.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
NotificationService.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
1
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
9
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Modules/FUSChatCenterModule/FUSChatCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9a79f11d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
k
e
y
>
FUSChatCenterBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSChatCenterBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
9
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
1
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSChatCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSChatCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
...
Modules/FUSShowRoomModule/FUSShowRoomModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9a79f11d
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
FUSShowRoomBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSShowRoomBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
2
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSShowRoomModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSShowRoomModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
85
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
90
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Modules/FUSUserCenterModule/FUSUserCenterModule.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9a79f11d
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
FUSUserCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSUserCenterModule.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
2
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
5
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSUserCenterModuleBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSUserCenterModuleBundle.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
91
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
88
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
Pods/Pods.xcodeproj/xcuserdata/aaa.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9a79f11d
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
<
k
e
y
>
FUSBDAlphaPlayer-BDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer-BDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
84
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
91
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FUSBDAlphaPlayer.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
3
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FUSCommon-FUSCommonBundle.xcscheme
<
/k
e
y
>
<
k
e
y
>
FUSCommon-FUSCommonBundle.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<
k
e
y
>
Firebase.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
Firebase.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
90
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
84
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FirebaseAnalytics.xcscheme
<
/k
e
y
>
<
k
e
y
>
FirebaseAnalytics.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
<
k
e
y
>
FirebaseCrashlytics.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
FirebaseCrashlytics.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
8
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
8
3
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
FirebaseInstallations.xcscheme
<
/k
e
y
>
<
k
e
y
>
FirebaseInstallations.xcscheme
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
...
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