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
fe1d4dad
Commit
fe1d4dad
authored
Feb 03, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.user-api加入loginByOneKeyLogin方法,用于优先调用一键登录
2.user模块OneKeyLoginHelp,加入一键登录全屏OR dialog展示方法
parent
5034c93d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
141 additions
and
97 deletions
+141
-97
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+1
-1
config.gradle
config.gradle
+6
-6
MineFragment.java
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
+15
-49
UserServiceImp.kt
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
+14
-2
SmsLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/SmsLoginActivity.kt
+0
-18
OneKeyLoginHelp.kt
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
+97
-21
IUserService.kt
m-user/src/main/modular_api/com/yidianling/user/api/service/IUserService.kt
+8
-0
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
fe1d4dad
...
@@ -97,7 +97,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -97,7 +97,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
// .withBoolean("bind_phone", false)
// .withBoolean("bind_phone", false)
// .withBoolean("isFromGuide", true)
// .withBoolean("isFromGuide", true)
// .navigation()
// .navigation()
OneKeyLoginHelp
.
getLoginToken
(
false
)
OneKeyLoginHelp
.
startLogin
(
this
,
false
)
}
}
bt_to_consultant
.
setOnClickListener
{
bt_to_consultant
.
setOnClickListener
{
// ARouter.getInstance()
// ARouter.getInstance()
...
...
config.gradle
View file @
fe1d4dad
...
@@ -8,8 +8,8 @@ ext {
...
@@ -8,8 +8,8 @@ ext {
"m-confide"
:
"0.0.48.91"
,
"m-confide"
:
"0.0.48.91"
,
"m-consultant"
:
"0.0.59.64"
,
"m-consultant"
:
"0.0.59.64"
,
"m-fm"
:
"0.0.30.00"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.
87
"
,
"m-user"
:
"0.0.60.
91
"
,
"m-home"
:
"0.0.22.5
1
"
,
"m-home"
:
"0.0.22.5
2
"
,
"m-im"
:
"0.0.18.33"
,
"m-im"
:
"0.0.18.33"
,
"m-dynamic"
:
"0.0.7.13"
,
"m-dynamic"
:
"0.0.7.13"
,
"m-article"
:
"0.0.0.6"
,
"m-article"
:
"0.0.0.6"
,
...
@@ -26,7 +26,7 @@ ext {
...
@@ -26,7 +26,7 @@ ext {
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
"m-tests-api"
:
"0.0.2"
,
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.1
5
"
,
"m-user-api"
:
"0.0.10.1
6
"
,
"m-home-api"
:
"0.0.4.1"
,
"m-home-api"
:
"0.0.4.1"
,
"m-im-api"
:
"0.0.12.21"
,
"m-im-api"
:
"0.0.12.21"
,
"m-dynamic-api"
:
"0.0.3.7"
,
"m-dynamic-api"
:
"0.0.3.7"
,
...
@@ -91,8 +91,8 @@ ext {
...
@@ -91,8 +91,8 @@ ext {
"m-confide"
:
"0.0.48.91"
,
"m-confide"
:
"0.0.48.91"
,
"m-consultant"
:
"0.0.59.44"
,
"m-consultant"
:
"0.0.59.44"
,
"m-fm"
:
"0.0.23.5"
,
"m-fm"
:
"0.0.23.5"
,
"m-user"
:
"0.0.60.
86
"
,
"m-user"
:
"0.0.60.
90
"
,
"m-home"
:
"0.0.22.5
1
"
,
"m-home"
:
"0.0.22.5
2
"
,
"m-im"
:
"0.0.3.15"
,
"m-im"
:
"0.0.3.15"
,
"m-dynamic"
:
"0.0.1.7"
,
"m-dynamic"
:
"0.0.1.7"
,
...
@@ -107,7 +107,7 @@ ext {
...
@@ -107,7 +107,7 @@ ext {
"m-fm-api"
:
"0.0.3"
,
"m-fm-api"
:
"0.0.3"
,
"m-muse-api"
:
"0.0.1"
,
"m-muse-api"
:
"0.0.1"
,
"m-tests-api"
:
"0.0.2"
,
"m-tests-api"
:
"0.0.2"
,
"m-user-api"
:
"0.0.10.1
5
"
,
"m-user-api"
:
"0.0.10.1
6
"
,
"m-home-api"
:
"0.0.4.1"
,
"m-home-api"
:
"0.0.4.1"
,
"m-im-api"
:
"0.0.12.21"
,
"m-im-api"
:
"0.0.12.21"
,
"m-dynamic-api"
:
"0.0.3.7"
,
"m-dynamic-api"
:
"0.0.3.7"
,
...
...
m-user/src/main/java/com/yidianling/user/mine/MineFragment.java
View file @
fe1d4dad
...
@@ -356,34 +356,13 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -356,34 +356,13 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
}
}
}
}
/**
* 请求获取设备权限并跳转到登录
*/
@SuppressLint
(
"CheckResult"
)
private
void
startLogin
()
{
new
RxPermissions
(
getActivity
())
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
)
.
subscribe
(
permission
->
{
if
(
OneKeyLoginHelp
.
INSTANCE
.
getMIsOpenOneKeyLogin
())
{
OneKeyLoginHelp
.
INSTANCE
.
getLoginToken
(
true
);
}
else
{
RegisterAndLoginActivity
.
Companion
.
start
(
getActivity
());
}
});
}
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
int
id
=
v
.
getId
();
//切换环境逻辑按钮
int
id
=
v
.
getId
();
//切换环境逻辑按钮
if
(
id
==
R
.
id
.
text_userName
||
id
==
R
.
id
.
cv_duration
)
{
if
(
id
==
R
.
id
.
text_userName
||
id
==
R
.
id
.
cv_duration
)
{
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
);
startLogin
();
}
}
else
if
(
id
==
R
.
id
.
iv_edit_info
)
{
//修改资料
}
else
if
(
id
==
R
.
id
.
iv_edit_info
)
{
//修改资料
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
if
(
userInfoData
!=
null
)
{
if
(
userInfoData
!=
null
)
{
...
@@ -394,8 +373,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -394,8 +373,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
if
(
Utils
.
isFastClick
())
{
if
(
Utils
.
isFastClick
())
{
return
;
return
;
}
}
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
if
(
userInfoData
!=
null
)
{
if
(
userInfoData
!=
null
)
{
...
@@ -403,37 +381,32 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -403,37 +381,32 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
startActivity
(
intentuser
);
startActivity
(
intentuser
);
}
}
}
else
if
(
id
==
R
.
id
.
ll_account
)
{
//账户余额
}
else
if
(
id
==
R
.
id
.
ll_account
)
{
//账户余额
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
startActivity
(
new
Intent
(
getActivity
(),
AccountHistoryActivity
.
class
));
startActivity
(
new
Intent
(
getActivity
(),
AccountHistoryActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
ll_red_packet
)
{
//我的红包
}
else
if
(
id
==
R
.
id
.
ll_red_packet
)
{
//我的红包
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
clearCouponStatus
();
clearCouponStatus
();
ModularServiceManager
.
INSTANCE
.
provide
(
IAppService
.
class
).
myRedPockIntent
(
getActivity
());
ModularServiceManager
.
INSTANCE
.
provide
(
IAppService
.
class
).
myRedPockIntent
(
getActivity
());
}
else
if
(
id
==
R
.
id
.
ll_fans
)
{
//粉丝
}
else
if
(
id
==
R
.
id
.
ll_fans
)
{
//粉丝
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
H5Params
h5Params
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/fans-list"
,
null
);
H5Params
h5Params
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/fans-list"
,
null
);
NewH5Activity
.
start
(
getActivity
(),
h5Params
);
NewH5Activity
.
start
(
getActivity
(),
h5Params
);
}
else
if
(
id
==
R
.
id
.
ll_guanzhu
)
{
//我关注的
}
else
if
(
id
==
R
.
id
.
ll_guanzhu
)
{
//我关注的
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
H5Params
h5Params1
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/follow-per"
,
null
);
H5Params
h5Params1
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"mine/follow-per"
,
null
);
NewH5Activity
.
start
(
getActivity
(),
h5Params1
);
NewH5Activity
.
start
(
getActivity
(),
h5Params1
);
}
else
if
(
id
==
R
.
id
.
ll_my_trends
)
{
}
else
if
(
id
==
R
.
id
.
ll_my_trends
)
{
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
BuryPointUtils
.
getInstance
().
createMap
()
BuryPointUtils
.
getInstance
().
createMap
()
...
@@ -446,22 +419,19 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -446,22 +419,19 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
}
}
}
else
if
(
id
==
R
.
id
.
jtv_account_setting
)
{
//账号设置
}
else
if
(
id
==
R
.
id
.
jtv_account_setting
)
{
//账号设置
//点击消息 未登录请先登录
//点击消息 未登录请先登录
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
startActivity
(
new
Intent
(
getActivity
(),
AccountSettingActivity
.
class
));
startActivity
(
new
Intent
(
getActivity
(),
AccountSettingActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
jtv_account_privacy
)
{
// 未登录请先登录
}
else
if
(
id
==
R
.
id
.
jtv_account_privacy
)
{
// 未登录请先登录
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
UserHelper
.
INSTANCE
.
getUsetSetting
().
setMeSafePrivateIsClick
(
true
);
UserHelper
.
INSTANCE
.
getUsetSetting
().
setMeSafePrivateIsClick
(
true
);
jtv_account_privacy
.
setLeftRedDotVisibility
(
View
.
GONE
);
jtv_account_privacy
.
setLeftRedDotVisibility
(
View
.
GONE
);
startActivity
(
new
Intent
(
getActivity
(),
PrivacyActivity
.
class
));
startActivity
(
new
Intent
(
getActivity
(),
PrivacyActivity
.
class
));
}
else
if
(
id
==
R
.
id
.
ll_trade_order
)
{
//预约
}
else
if
(
id
==
R
.
id
.
ll_trade_order
)
{
//预约
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
BuryPointUtils
.
getInstance
().
createMap
()
BuryPointUtils
.
getInstance
().
createMap
()
...
@@ -471,14 +441,12 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -471,14 +441,12 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
h5Params3
.
setShowMenu
(
true
);
h5Params3
.
setShowMenu
(
true
);
NewH5Activity
.
start
(
getActivity
(),
h5Params3
);
NewH5Activity
.
start
(
getActivity
(),
h5Params3
);
}
else
if
(
id
==
R
.
id
.
ll_my_courses
)
{
//我的课程
}
else
if
(
id
==
R
.
id
.
ll_my_courses
)
{
//我的课程
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
ModularServiceManager
.
INSTANCE
.
provide
(
ICourseService
.
class
).
startMyCourseActivity
(
getActivity
());
ModularServiceManager
.
INSTANCE
.
provide
(
ICourseService
.
class
).
startMyCourseActivity
(
getActivity
());
}
else
if
(
id
==
R
.
id
.
ll_call_order
)
{
//倾诉
}
else
if
(
id
==
R
.
id
.
ll_call_order
)
{
//倾诉
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
BuryPointUtils
.
getInstance
().
createMap
()
BuryPointUtils
.
getInstance
().
createMap
()
...
@@ -501,8 +469,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -501,8 +469,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
NewH5Activity
.
start
(
getActivity
(),
h5Paramzhuan
);
NewH5Activity
.
start
(
getActivity
(),
h5Paramzhuan
);
}
}
}
else
if
(
id
==
R
.
id
.
ll_my_test_log
)
{
//测试记录
}
else
if
(
id
==
R
.
id
.
ll_my_test_log
)
{
//测试记录
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
BuryPointUtils
.
getInstance
().
createMap
()
BuryPointUtils
.
getInstance
().
createMap
()
...
@@ -518,8 +485,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
...
@@ -518,8 +485,7 @@ public class MineFragment extends BaseFragment implements SwipeRefreshLayout.OnR
H5Params
params1
=
new
H5Params
(
"https://m.yidianling.com/about"
,
"网站介绍"
);
H5Params
params1
=
new
H5Params
(
"https://m.yidianling.com/about"
,
"网站介绍"
);
NewH5Activity
.
start
(
getActivity
(),
params1
);
NewH5Activity
.
start
(
getActivity
(),
params1
);
}
else
if
(
id
==
R
.
id
.
ll_reward
)
{
}
else
if
(
id
==
R
.
id
.
ll_reward
)
{
if
(!
UserHelper
.
INSTANCE
.
isLogin
())
{
if
(!
OneKeyLoginHelp
.
INSTANCE
.
startLoginByStatus
(
getActivity
(),
true
))
{
startLogin
();
return
;
return
;
}
}
H5Params
h5Param
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"course/invite-record"
,
null
);
H5Params
h5Param
=
new
H5Params
(
HttpConfig
.
Companion
.
getH5_URL
()
+
"course/invite-record"
,
null
);
...
...
m-user/src/main/java/com/yidianling/user/modular_service/UserServiceImp.kt
View file @
fe1d4dad
...
@@ -14,7 +14,10 @@ import com.ydl.ydlcommon.data.http.ThrowableConsumer
...
@@ -14,7 +14,10 @@ import com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ActivityManager
import
com.ydl.ydlcommon.utils.ApkUpdateDialog
import
com.ydl.ydlcommon.utils.ApkUpdateDialog
import
com.yidianling.common.tools.RxAppTool
import
com.yidianling.common.tools.RxAppTool
import
com.yidianling.user.*
import
com.yidianling.user.LoginHelper
import
com.yidianling.user.LoginUtils
import
com.yidianling.user.UserConstants
import
com.yidianling.user.UserHelper
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.api.bean.UserResponseBean
import
com.yidianling.user.api.bean.UserSettingBean
import
com.yidianling.user.api.bean.UserSettingBean
import
com.yidianling.user.api.listener.SecretDataListener
import
com.yidianling.user.api.listener.SecretDataListener
...
@@ -32,13 +35,13 @@ import com.yidianling.user.safePrivate.HandUnlockCheckActivity
...
@@ -32,13 +35,13 @@ import com.yidianling.user.safePrivate.HandUnlockCheckActivity
import
com.yidianling.user.safePrivate.PrivacyActivity
import
com.yidianling.user.safePrivate.PrivacyActivity
import
com.yidianling.user.ui.InputPhoneActivity
import
com.yidianling.user.ui.InputPhoneActivity
import
com.yidianling.user.ui.LoginActivity
import
com.yidianling.user.ui.LoginActivity
import
com.yidianling.user.ui.login.OneKeyLoginHelp
import
com.yidianling.user.ui.login.RegisterAndLoginActivity
import
com.yidianling.user.ui.login.RegisterAndLoginActivity
import
com.yidianling.user.ui.login.SecretActivity
import
com.yidianling.user.ui.login.SecretActivity
import
com.yidianling.user.widget.utils.PrivacyDialogUtils
import
com.yidianling.user.widget.utils.PrivacyDialogUtils
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.android.schedulers.AndroidSchedulers
import
io.reactivex.functions.Consumer
import
io.reactivex.functions.Consumer
import
io.reactivex.schedulers.Schedulers
import
io.reactivex.schedulers.Schedulers
import
java.lang.Exception
/**
/**
* author : Zhangwenchao
* author : Zhangwenchao
...
@@ -310,4 +313,12 @@ public class UserServiceImp : IUserService {
...
@@ -310,4 +313,12 @@ public class UserServiceImp : IUserService {
override
fun
startFromGuide
(
context
:
Context
,
isBindPhone
:
Boolean
,
isFromGudile
:
Boolean
)
{
override
fun
startFromGuide
(
context
:
Context
,
isBindPhone
:
Boolean
,
isFromGudile
:
Boolean
)
{
RegisterAndLoginActivity
.
startFromGuide
(
context
,
isBindPhone
,
isFromGudile
)
RegisterAndLoginActivity
.
startFromGuide
(
context
,
isBindPhone
,
isFromGudile
)
}
}
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
override
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
):
Boolean
{
return
OneKeyLoginHelp
.
startLoginByStatus
(
context
,
isOpenDialog
)
}
}
}
\ No newline at end of file
m-user/src/main/java/com/yidianling/user/ui/SmsLoginActivity.kt
View file @
fe1d4dad
...
@@ -262,21 +262,4 @@ class SmsLoginActivity : BaseActivity() {
...
@@ -262,21 +262,4 @@ class SmsLoginActivity : BaseActivity() {
}
}
}
}
/**
* CPA(CPS)推广渠道统计
* 获取安装携带的参数
* 注:1、不要在 init 之后,紧接着调用 getInstall,防止网络等问题导致 getInstall 超时,从而获取数据失败
*/
private
fun
getOpenInstallKey
()
{
OpenInstall
.
getInstall
(
object
:
AppInstallAdapter
()
{
override
fun
onInstall
(
appData
:
AppData
)
{
// 获取渠道数据 转换值同步IOS "AppData{channel='" + this.channel + '\'' + ", data='" + this.data + '\'' + '}'
openInstallKey
=
appData
.
toString
().
replace
(
"AppData"
,
""
).
replace
(
"channel"
,
"channelCode"
)
LogUtil
.
e
(
"openInstallKey-openInstallKey:"
+
openInstallKey
)
}
})
}
}
}
\ No newline at end of file
m-user/src/main/java/com/yidianling/user/ui/login/OneKeyLoginHelp.kt
View file @
fe1d4dad
This diff is collapsed.
Click to expand it.
m-user/src/main/modular_api/com/yidianling/user/api/service/IUserService.kt
View file @
fe1d4dad
...
@@ -107,4 +107,11 @@ interface IUserService : IProvider {
...
@@ -107,4 +107,11 @@ interface IUserService : IProvider {
fun
getSecretDataApi
(
activity
:
Activity
,
listener
:
SecretDataListener
)
fun
getSecretDataApi
(
activity
:
Activity
,
listener
:
SecretDataListener
)
fun
startFromGuide
(
context
:
Context
,
isBindPhone
:
Boolean
,
isFromGudile
:
Boolean
)
fun
startFromGuide
(
context
:
Context
,
isBindPhone
:
Boolean
,
isFromGudile
:
Boolean
)
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
}
}
\ No newline at end of file
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