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
74b85fa9
Commit
74b85fa9
authored
Jan 18, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:发送验证码失败错误信息Toast提示
parent
4fa302b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
VerificationCodePresenterImpl.kt
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
+5
-1
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/presenter/VerificationCodePresenterImpl.kt
View file @
74b85fa9
...
...
@@ -34,6 +34,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
}
//发送登录验证码
@SuppressLint
(
"CheckResult"
)
override
fun
sendLoginCode
(
phone
:
String
,
phoneCountryCode
:
String
)
{
mModel
.
sendLoginMsgCode
(
phone
,
phoneCountryCode
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
@@ -43,10 +44,10 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
.
subscribe
({
if
(
it
.
code
==
200
)
{
YDLCacheUtils
.
saveCodeTime
(
phone
,
System
.
currentTimeMillis
().
toString
())
// ToastUtil.toastShort("验证码已发送")
mView
.
startCountdown
(
60
)
}
else
{
mView
.
startAnim
()
ToastUtil
.
toastShort
(
it
.
msg
)
}
},
{
mView
.
startAnim
()
...
...
@@ -57,6 +58,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
* 重置密码的验证码
*/
@SuppressLint
(
"CheckResult"
)
override
fun
sendResetCode
(
phone
:
String
,
countryCode
:
String
)
{
mModel
.
sendResetCode
(
phone
,
countryCode
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
@@ -80,6 +82,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
* 绑定手机号
*/
@SuppressLint
(
"CheckResult"
)
override
fun
bindPhone
(
param
:
BindPhoneJavaParam
)
{
mModel
.
bindPhone
(
param
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
@@ -116,6 +119,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/**
* 检查重置密码的验证码(重置密码就是忘记密码)
*/
@SuppressLint
(
"CheckResult"
)
override
fun
checkResetCode
(
phone
:
String
,
countryCode
:
String
,
msgCode
:
String
)
{
mModel
.
checkResetCode
(
phone
,
countryCode
,
msgCode
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
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