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
b80bae81
Commit
b80bae81
authored
May 27, 2020
by
IOS-张 博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录逻辑
parent
4b16a975
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
QGRegisterViewController.m
...erOrVerifyLogin/ViewController/QGRegisterViewController.m
+14
-9
No files found.
VirtualPayment/VirtualPayment/QGClasses/Login/Function/QGRegisterOrVerifyLogin/ViewController/QGRegisterViewController.m
View file @
b80bae81
...
...
@@ -120,8 +120,8 @@
}
NSString
*
urlString
=
[
QGLoginRequestApi
urlWithQGLoginRequestServerMethod
:
QGLoginRequestServerMethodCheckWechatBinding
];
urlString
=
@"http://yapi.quantgroups.com/mock/305/vcc/external/login/weChat_opId"
;
NSDictionary
*
infoDic
=
@{
@"union
i
d"
:
self
.
wechatInfoModel
.
unionid
};
//
urlString = @"http://yapi.quantgroups.com/mock/305/vcc/external/login/weChat_opId";
NSDictionary
*
infoDic
=
@{
@"union
I
d"
:
self
.
wechatInfoModel
.
unionid
};
[
QGHUDManager
showHud
:
nil
];
[[
QGTalosNetwork
shareManager
]
POST
:
urlString
parameters
:
infoDic
success
:^
(
id
_Nonnull
responseObject
)
{
[
QGHUDManager
hideHud
];
...
...
@@ -157,7 +157,7 @@
-
(
void
)
checkAppleBinding
{
NSString
*
urlString
=
[
QGLoginRequestApi
urlWithQGLoginRequestServerMethod
:
QGLoginRequestServerMethodCheckAppleBinding
];
urlString
=
@"http://yapi.quantgroups.com/mock/305/vcc/external/login/apple_idtoken"
;
//
urlString = @"http://yapi.quantgroups.com/mock/305/vcc/external/login/apple_idtoken";
[
QGHUDManager
showHud
:
nil
];
NSDictionary
*
infoDic
=
@{
@"identityToken"
:
self
.
appleInfoModel
.
identityToken
,
@"authorizationCode"
:
self
.
appleInfoModel
.
authorizationCode
,
...
...
@@ -169,19 +169,24 @@
//请求成功
if
([
QGBaseNetwork
checkBusinessCodeAndCodeWithResponseObjectObject
:
responseObject
])
{
NSDictionary
*
dataDic
=
responseObject
[
@"data"
];
//0:未绑定,1:已绑定
BOOL
checkStatus
=
[
dataDic
[
@"checkStatus"
]
boolValue
];
//0:未绑定,1:已绑定 2 :校验未通过
NSInteger
checkStatus
=
[
dataDic
[
@"checkStatus"
]
integerValue
];
//未绑定
if
(
checkStatus
==
0
)
{
[
Mediator
performTarget
:
ClassNameWithHeadType
(
QGHeaderTypeQGBindingPhoneViewController
)
parameters
:@{
@"appleInfoModel"
:
self
.
appleInfoModel
}
handlerBlock
:
nil
];
}
//已绑定
if
(
checkStatus
){
else
if
(
checkStatus
==
1
){
//保存登录信息
[
self
loginSuccessSaveUserInfo
:
dataDic
[
@"loginInfo"
]];
//关闭页面
[
self
performSelector
:
@selector
(
dismissPressed
)
withObject
:
nil
afterDelay
:
0
.
2
];
}
//未
绑定
else
//未
通过
else
if
(
checkStatus
==
2
)
{
[
Mediator
performTarget
:
ClassNameWithHeadType
(
QGHeaderTypeQGBindingPhoneViewController
)
parameters
:@{
@"appleInfoModel"
:
self
.
appleInfoModel
}
handlerBlock
:
nil
];
[
QGHUDManager
showHud
:
@"Apple ID登录失效"
];
}
}
else
...
...
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