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
cce935af
Commit
cce935af
authored
Feb 03, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.倾诉模块,登录接入优先一键登录功能
parent
8aa47703
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
16 deletions
+18
-16
config.gradle
config.gradle
+5
-5
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+1
-2
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+2
-6
ConsultAssistantEntryUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
+1
-3
ConsultantIn.kt
m-consultant/src/main/java/com/yidianling/consultant/router/ConsultantIn.kt
+9
-0
No files found.
config.gradle
View file @
cce935af
...
...
@@ -5,8 +5,8 @@ ext {
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.9
1
"
,
"m-consultant"
:
"0.0.59.6
4
"
,
"m-confide"
:
"0.0.48.9
2
"
,
"m-consultant"
:
"0.0.59.6
5
"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.91"
,
"m-home"
:
"0.0.22.52"
,
...
...
@@ -88,8 +88,8 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.9
1
"
,
"m-consultant"
:
"0.0.59.
44
"
,
"m-confide"
:
"0.0.48.9
2
"
,
"m-consultant"
:
"0.0.59.
65
"
,
"m-fm"
:
"0.0.23.5"
,
"m-user"
:
"0.0.60.91"
,
"m-home"
:
"0.0.22.52"
,
...
...
@@ -97,7 +97,7 @@ ext {
"m-dynamic"
:
"0.0.1.7"
,
"m-muse"
:
"0.0.20.7"
,
"m-tests"
:
"0.0.
18.1
"
,
"m-tests"
:
"0.0.
24.9
"
,
"m-course"
:
"0.0.34.10"
,
//-------------- 业务模块 API 层 --------------
"m-audioim-api"
:
"0.0.6"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
cce935af
...
...
@@ -439,8 +439,7 @@ class ExpertSearchAdapter(
)
}
//判断是否已登录
if
(!
ConsultantIn
.
getUserImpl
().
isLogin
())
{
TempH5RouteUtils
.
tempH5Route
(
IYDLRouterConstant
.
ROUTER_MINE_LOGIN
)
if
(!
ConsultantIn
.
getUserImpl
().
loginByOneKeyLogin
(
context
,
true
))
{
return
@setOnClickListener
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
cce935af
...
...
@@ -207,9 +207,7 @@ class ConsultAssistantDialogUtils private constructor() {
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
// 咨询师列表页面且未登录情况下,跳转登录页面
if
(!
ConsultantIn
.
isLogin
())
{
ConsultantIn
.
toLogin
(
activity
)
}
else
{
if
(
ConsultantIn
.
loginByOneKeyLogin
(
activity
,
true
))
{
//获取用户uid
getConsultAssistantUid
(
origin
,
activity
,
6
)
}
...
...
@@ -229,9 +227,7 @@ class ConsultAssistantDialogUtils private constructor() {
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
// 咨询师列表页面且未登录情况下,跳转登录页面
if
(!
ConsultantIn
.
isLogin
())
{
ConsultantIn
.
toLogin
(
activity
)
}
else
{
if
(
ConsultantIn
.
loginByOneKeyLogin
(
activity
,
true
))
{
//获取用户uid
getConsultAssistantUid
(
origin
,
activity
,
6
)
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
View file @
cce935af
...
...
@@ -33,9 +33,7 @@ class ConsultAssistantEntryUtils {
"$location"
)
if
(!
ConsultantIn
.
isLogin
())
{
ConsultantIn
.
toLogin
(
activity
)
}
else
{
if
(
ConsultantIn
.
loginByOneKeyLogin
(
activity
,
true
))
{
// 请求接口获取咨询助理的uid
SearchApi
.
getSearchApi
().
getConsultAssistantUidRequest
(
location
,
ffrom2
)
.
subscribeOn
(
Schedulers
.
io
())
...
...
m-consultant/src/main/java/com/yidianling/consultant/router/ConsultantIn.kt
View file @
cce935af
...
...
@@ -51,4 +51,12 @@ object ConsultantIn {
activity
.
startActivity
(
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
).
loginWayIntent
(
activity
))
}
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
{
return
getUserService
().
loginByOneKeyLogin
(
context
,
isOpenDialog
)
}
}
\ 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