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
e665564d
Commit
e665564d
authored
May 28, 2020
by
IOS-张 博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解除授权loading时机修改
parent
a4f09d8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
QGSafeCenterViewController.m
...erCenter/Function/SafeCenter/QGSafeCenterViewController.m
+15
-13
No files found.
VirtualPayment/VirtualPayment/QGClasses/UserCenter/Function/SafeCenter/QGSafeCenterViewController.m
View file @
e665564d
...
...
@@ -240,19 +240,21 @@ typedef NS_ENUM(NSInteger,QGAuthStatus){
QGTalosNetwork
*
networking
=
[
QGTalosNetwork
shareManager
];
// [QGLoginRequestApi urlWithQGLoginRequestServerMethod:QGLoginRequestServerMethodUnBindWeChat]
//@"http://yapi.quantgroups.com/mock/305/vcc/external/login/weChat/unbind"
[
networking
GET
:[
QGLoginRequestApi
urlWithQGLoginRequestServerMethod
:
QGLoginRequestServerMethodUnBindWeChat
]
parameters
:
nil
success
:^
(
id
_Nonnull
responseObject
)
{
if
([
QGTalosNetwork
checkBusinessCodeAndCodeWithResponseObjectObject
:
responseObject
])
{
/// 刷新页面
self
.
wxAuthStatus
=
QGAuthStatusUnAuth
;
[
self
initData
];
[
QGHUDManager
showHud
:
@""
];
}
else
{
NSString
*
msg
=
responseObject
[
@"msg"
]?
responseObject
[
@"msg"
]:
@"解除授权错误"
;
[
QGHUDManager
showHud
:
msg
];
}
}
failure
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
NSError
*
_Nonnull
error
)
{
[
QGHUDManager
showHud
:
@"网络错误,请稍后再试"
];
}];
[
QGHUDManager
showHud
:
@""
];
[
networking
GET
:[
QGLoginRequestApi
urlWithQGLoginRequestServerMethod
:
QGLoginRequestServerMethodUnBindWeChat
]
parameters
:
nil
success
:^
(
id
_Nonnull
responseObject
)
{
[
QGHUDManager
hideHud
];
if
([
QGTalosNetwork
checkBusinessCodeAndCodeWithResponseObjectObject
:
responseObject
])
{
/// 刷新页面
self
.
wxAuthStatus
=
QGAuthStatusUnAuth
;
[
self
initData
];
}
else
{
NSString
*
msg
=
responseObject
[
@"msg"
]?
responseObject
[
@"msg"
]:
@"解除授权错误"
;
[
QGHUDManager
showHud
:
msg
];
}
}
failure
:^
(
NSURLSessionDataTask
*
_Nonnull
task
,
NSError
*
_Nonnull
error
)
{
[
QGHUDManager
showHud
:
@"网络错误,请稍后再试"
];
}];
}
...
...
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