Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
杨凯
YDL-Component-Medical
Commits
6aab85d4
Commit
6aab85d4
authored
Jan 13, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:一键登录代码优化
parent
72735bd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+2
-2
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
6aab85d4
...
...
@@ -361,13 +361,13 @@ object OneKeyLoginHelp {
}
}
ResultCode
.
CODE_SUCCESS
->
{
// 获取token成功
val
param
=
PhoneLoginAutoParam
(
tokenRet
.
token
,
JPushUtils
.
getRegistrationID
(),
2
,
2
,
""
,
RxAppTool
.
getAppVersionName
(
BaseApp
.
Companion
.
getApp
()))
val
param
=
PhoneLoginAutoParam
(
tokenRet
.
token
,
JPushUtils
.
getRegistrationID
(),
2
,
2
,
""
,
RxAppTool
.
getAppVersionName
(
BaseApp
.
Companion
.
getApp
()))
LoginApiRequestUtil
.
autoLogin
(
param
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
if
(
it
.
code
==
200
)
{
ToastUtil
.
toastShort
(
"登录成功"
)
saveUserData
(
it
.
data
)
if
(
it
.
data
.
firstLogin
==
1
)
{
//第一次登录:是注册
StatusUtils
.
isFirstLogin
=
true
...
...
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