Commit 3f9be8a2 by YKai

feat:接口问题修复

parent 62967ba1
...@@ -156,7 +156,7 @@ interface UserApi { ...@@ -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) @Headers(YDL_DOMAIN+ YDL_DOMAIN_LOGIN_BASE_URL, LOGIN_USER_PORT)
fun bindPhone(@Body body: RequestBody): Observable<BaseResponse<Any>> fun bindPhone(@Body body: RequestBody): Observable<BaseResponse<Any>>
...@@ -206,14 +206,14 @@ interface UserApi { ...@@ -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) @Headers( YDL_DOMAIN+ YDL_DOMAIN_LOGIN_BASE_URL, LOGIN_USER_PORT)
fun resetPwd(@Body body: RequestBody): Observable<BaseResponse<UserResponseBean>> 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) @Headers( YDL_DOMAIN+ YDL_DOMAIN_LOGIN_BASE_URL, LOGIN_USER_PORT)
fun sendLoginMsgCode(@Query("phone") phone: String, @Query("countryCode") countryCode: String): Observable<BaseResponse<Any>> fun sendLoginMsgCode(@Query("phone") phone: String, @Query("countryCode") countryCode: String): Observable<BaseResponse<Any>>
......
...@@ -123,6 +123,21 @@ object OneKeyLoginHelp { ...@@ -123,6 +123,21 @@ object OneKeyLoginHelp {
.navigation() .navigation()
} }
/**
* 根据是否开启一键登录开关,跳转对应的登录页面
*
*/
fun toLoginActivity(isOpenDialog:Boolean){
if (mIsOpenOneKeyLogin){
getLoginToken(isOpenDialog)
}else{
ARouter.getInstance().build("/user/login")
.withBoolean("bind_phone", false)
.withBoolean("isFromGuide", mIsFromGuide)
.navigation()
}
}
/** /**
* 本机手机号码校验 * 本机手机号码校验
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment