Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VirtualCard-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
APP
VirtualCard-iOS
Commits
959db4c5
Commit
959db4c5
authored
May 19, 2020
by
guanghui.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给小米设置alias,兼容消息中心以后的改版
parent
aa154aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
QGPushService.m
...tualPayment/QGUtils/QGTool/SocialPlatform/QGPushService.m
+3
-1
No files found.
VirtualPayment/VirtualPayment/QGUtils/QGTool/SocialPlatform/QGPushService.m
View file @
959db4c5
...
@@ -128,9 +128,10 @@
...
@@ -128,9 +128,10 @@
if
(
userInfo
.
userName
)
{
if
(
userInfo
.
userName
)
{
[
MiPushSDK
setAccount
:
userInfo
.
userName
];
[
MiPushSDK
setAccount
:
userInfo
.
userName
];
}
}
[
MiPushSDK
setAlias
:
account
];
[
MiPushSDK
subscribe
:
@"login"
];
[
MiPushSDK
subscribe
:
@"login"
];
[
MiPushSDK
unsubscribe
:
@"logout"
];
[
MiPushSDK
unsubscribe
:
@"logout"
];
/// 极光推送---------------------------
/// 极光推送---------------------------
[
JPUSHService
setAlias
:
account
completion
:
^
(
NSInteger
iResCode
,
NSString
*
iAlias
,
NSInteger
seq
)
{
[
JPUSHService
setAlias
:
account
completion
:
^
(
NSInteger
iResCode
,
NSString
*
iAlias
,
NSInteger
seq
)
{
NSLog
(
@"设置别名:%@"
,
iAlias
);
NSLog
(
@"设置别名:%@"
,
iAlias
);
...
@@ -147,6 +148,7 @@
...
@@ -147,6 +148,7 @@
if
(
QGUserInfo
.
sharedUserInfo
.
userName
.
length
>
0
)
{
if
(
QGUserInfo
.
sharedUserInfo
.
userName
.
length
>
0
)
{
[
MiPushSDK
unsetAccount
:
QGUserInfo
.
sharedUserInfo
.
userName
];
[
MiPushSDK
unsetAccount
:
QGUserInfo
.
sharedUserInfo
.
userName
];
}
}
[
MiPushSDK
unsetAlias
:
account
];
[
MiPushSDK
subscribe
:
@"logout"
];
[
MiPushSDK
subscribe
:
@"logout"
];
[
MiPushSDK
unsubscribe
:
@"login"
];
[
MiPushSDK
unsubscribe
:
@"login"
];
...
...
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