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
3f9be8a2
Commit
3f9be8a2
authored
Jan 12, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:接口问题修复
parent
62967ba1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
UserApi.kt
m-user/src/main/java/com/yidianling/user/http/UserApi.kt
+3
-3
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+15
-0
No files found.
m-user/src/main/java/com/yidianling/user/http/UserApi.kt
View file @
3f9be8a2
...
...
@@ -156,7 +156,7 @@ interface UserApi {
/**
* 绑定手机号
*/
@POST
(
"
/
login/v2/bind_phone"
)
@POST
(
"login/v2/bind_phone"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_LOGIN_BASE_URL
,
LOGIN_USER_PORT
)
fun
bindPhone
(
@Body
body
:
RequestBody
):
Observable
<
BaseResponse
<
Any
>>
...
...
@@ -206,14 +206,14 @@ interface UserApi {
/**
* 重置密码
*/
@POST
(
"
/
login/v2/reset_pwd"
)
@POST
(
"login/v2/reset_pwd"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_LOGIN_BASE_URL
,
LOGIN_USER_PORT
)
fun
resetPwd
(
@Body
body
:
RequestBody
):
Observable
<
BaseResponse
<
UserResponseBean
>>
/**
* 发送登录验证码
*/
@GET
(
"
user
/send_login_sms"
)
@GET
(
"
login/v2
/send_login_sms"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_LOGIN_BASE_URL
,
LOGIN_USER_PORT
)
fun
sendLoginMsgCode
(
@Query
(
"phone"
)
phone
:
String
,
@Query
(
"countryCode"
)
countryCode
:
String
):
Observable
<
BaseResponse
<
Any
>>
...
...
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
3f9be8a2
...
...
@@ -123,6 +123,21 @@ object OneKeyLoginHelp {
.
navigation
()
}
/**
* 根据是否开启一键登录开关,跳转对应的登录页面
*
*/
fun
toLoginActivity
(
isOpenDialog
:
Boolean
){
if
(
mIsOpenOneKeyLogin
){
getLoginToken
(
isOpenDialog
)
}
else
{
ARouter
.
getInstance
().
build
(
"/user/login"
)
.
withBoolean
(
"bind_phone"
,
false
)
.
withBoolean
(
"isFromGuide"
,
mIsFromGuide
)
.
navigation
()
}
}
/**
* 本机手机号码校验
...
...
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