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
35b46755
authored
Sep 19, 2025
by
pidan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复cid绑定的逻辑
parent
2012201b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
28 deletions
FuSiLive/AppDelegate.m
Modules/FUSUserCenterModule/FUSUserCenterModule/Router/FUSUserCenterRouter.m
FuSiLive/AppDelegate.m
View file @
35b46755
...
...
@@ -71,7 +71,7 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
[
FUSTalkingData
fus_setExceptionReportEnabled
:
YES
];
});
[
self
checkPasteboard
];
//
[self checkPasteboard];
// 获取域名
[
FUSAPIDNSManager
fus_checkCurrentDNSAddress
];
...
...
@@ -621,30 +621,4 @@ typedef NS_ENUM(NSInteger, FFOutsideJumpAPPType) {
}
}
-
(
void
)
checkPasteboard
{
NSString
*
localIcid
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
OPENINSTALL_ICID
];
NSString
*
icid
=
nil
;
if
(
!
[
NSString
isNull
:
localIcid
]
&&
!
[
localIcid
isEqualToString
:
FUSConfig
.
sharedInstanced
.
appConfigs
.
appId
])
{
icid
=
localIcid
;
}
else
{
icid
=
FUSConfig
.
sharedInstanced
.
appConfigs
.
appId
;
}
UIPasteboard
*
pasteboard
=
[
UIPasteboard
generalPasteboard
];
NSString
*
pastStr
=
pasteboard
.
string
;
// 如果icid为空,或者icid为默认渠道,则要判断粘贴板
if
(([
NSString
isNull
:
icid
]
||
[
icid
isEqualToString
:
FUSConfig
.
sharedInstanced
.
appConfigs
.
appId
])
&&
[
pastStr
hasPrefix
:
FUSConfig
.
sharedInstanced
.
appConfigs
.
appId
])
{
icid
=
pastStr
;
UIPasteboard
*
pasteboard
=
[
UIPasteboard
generalPasteboard
];
pasteboard
.
string
=
@""
;
}
[[
NSUserDefaults
standardUserDefaults
]
setObject
:
icid
forKey
:
OPENINSTALL_ICID
];
[
FUSHttpHelper
postRequestBinaryWithUrl
:
FUSCommonURLs
.
fus_URL_IDFA
params
:
nil
success
:
nil
failure
:
nil
];
}
@end
Modules/FUSUserCenterModule/FUSUserCenterModule/Router/FUSUserCenterRouter.m
View file @
35b46755
...
...
@@ -604,7 +604,15 @@
[[
FUSKeyboardShowHelper
sharedInstance
]
star
];
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
FUSAutoBindHelper
shared
]
fus_loadAutoBindDatas
:
^
{}];
NSTimer
*
timeout
=
[
NSTimer
scheduledTimerWithTimeInterval
:
10
repeats
:
NO
block
:^
(
NSTimer
*
_Nonnull
timer
)
{
[
FUSHttpHelper
postRequestBinaryWithUrl
:
FUSCommonURLs
.
fus_URL_IDFA
params
:
nil
success
:
nil
failure
:
nil
];
}];
[[
FUSAutoBindHelper
shared
]
fus_loadAutoBindDatas
:
^
{
[
timeout
invalidate
];
[
FUSHttpHelper
postRequestBinaryWithUrl
:
FUSCommonURLs
.
fus_URL_IDFA
params
:
nil
success
:
nil
failure
:
nil
];
}];
});
// 给语言类传参进是否是cn模式
...
...
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