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
c172e23a
Commit
c172e23a
authored
Apr 01, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:强绑手机号代码优化
parent
0239c319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
BindPhoneActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/BindPhoneActivity.kt
+1
-2
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/BindPhoneActivity.kt
View file @
c172e23a
...
@@ -227,11 +227,11 @@ class BindPhoneActivity : BaseActivity() {
...
@@ -227,11 +227,11 @@ class BindPhoneActivity : BaseActivity() {
.
doOnSubscribe
{
showProgressDialog
()
}
.
doOnSubscribe
{
showProgressDialog
()
}
.
doAfterTerminate
{
dismissProgressDialog
()
}
.
doAfterTerminate
{
dismissProgressDialog
()
}
.
subscribe
({
.
subscribe
({
RxKeyboardTool
.
hideSoftInput
(
this
)
if
(
it
.
code
==
200
)
{
if
(
it
.
code
==
200
)
{
ToastUtil
.
toastShort
(
"绑定成功"
)
ToastUtil
.
toastShort
(
"绑定成功"
)
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
bind_phone
=
1
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
bind_phone
=
1
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
phone
=
phone
UserHelper
.
getUserInfo
()
!!
.
userInfo
!!
.
phone
=
phone
RxKeyboardTool
.
hideSoftInput
(
this
)
if
(
mIsFromGuide
)
{
if
(
mIsFromGuide
)
{
LoginUtils
.
loginSuccessOperate
(
this
)
LoginUtils
.
loginSuccessOperate
(
this
)
}
else
{
}
else
{
...
@@ -239,7 +239,6 @@ class BindPhoneActivity : BaseActivity() {
...
@@ -239,7 +239,6 @@ class BindPhoneActivity : BaseActivity() {
}
}
}
else
if
(
it
.
code
==
1300000004
)
{
// 如果不是10分钟内注册,提示“绑定失败,此手机号已注册”,并标记此账号为无需强绑
}
else
if
(
it
.
code
==
1300000004
)
{
// 如果不是10分钟内注册,提示“绑定失败,此手机号已注册”,并标记此账号为无需强绑
ToastUtil
.
toastShort
(
it
.
msg
)
ToastUtil
.
toastShort
(
it
.
msg
)
RxKeyboardTool
.
hideSoftInput
(
this
)
if
(
mIsFromGuide
)
{
if
(
mIsFromGuide
)
{
LoginUtils
.
loginSuccessOperate
(
this
)
LoginUtils
.
loginSuccessOperate
(
this
)
}
else
{
}
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