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
73ebce75
Commit
73ebce75
authored
Nov 09, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:亲子教育跳转专属导医队列接口对接
parent
bd7001cc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
config.gradle
config.gradle
+1
-1
SearchApi.kt
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
+1
-1
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+10
-4
ConsultAssistantEntryUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
+1
-1
No files found.
config.gradle
View file @
73ebce75
...
...
@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.86"
,
"m-consultant"
:
"0.0.59.3
6
"
,
"m-consultant"
:
"0.0.59.3
7
"
,
"m-fm"
:
"0.0.30.00"
,
"m-user"
:
"0.0.60.37"
,
"m-home"
:
"0.0.22.33"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
View file @
73ebce75
...
...
@@ -66,7 +66,7 @@ interface SearchApi {
//获取咨询助理uid
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
,
"Content-Type:application/json"
)
@GET
(
"consult/assistant/chat-distribute"
)
fun
getConsultAssistantUidRequest
(
@Query
(
"location"
)
location
:
Int
):
Observable
<
BaseAPIResponse
<
Long
>>
fun
getConsultAssistantUidRequest
(
@Query
(
"location"
)
location
:
Int
,
@Query
(
"ffrom_2"
)
ffrom
:
String
?
):
Observable
<
BaseAPIResponse
<
Long
>>
//获取咨询助理uid
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
,
"Content-Type:application/json"
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
73ebce75
...
...
@@ -289,14 +289,20 @@ class ConsultAssistantDialogUtils private constructor() {
@SuppressLint
(
"CheckResult"
)
fun
getConsultAssistantUid
(
origin
:
String
,
activity
:
Activity
,
location
:
Int
)
{
if
(
origin
==
"doctor_list"
){
LogUtil
.
e
(
"是aaaaaaaaaaaaaaaaaaaaa"
)
// 请求接口获取咨询助理的uid
getConsultAssistantUid
(
location
,
activity
,
"learning"
)
}
else
{
LogUtil
.
e
(
"不是aaaaaaaaaaaaaaaaaaaaa"
)
// 请求接口获取咨询助理的uid
getConsultAssistantUid
(
location
,
activity
,
null
)
}
ActionCountUtils
.
count
(
ConsultBIConstants
.
POSITION_DAOYI_ADVERTISEMENT_CLICK
,
location
.
toString
())
// 请求接口获取咨询助理的uid
SearchApi
.
getSearchApi
().
getConsultAssistantUidRequest
(
location
)
}
@SuppressLint
(
"CheckResult"
)
private
fun
getConsultAssistantUid
(
location
:
Int
,
activity
:
Activity
,
ffrom
:
String
?)
{
SearchApi
.
getSearchApi
().
getConsultAssistantUidRequest
(
location
,
ffrom
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/utils/ConsultAssistantEntryUtils.kt
View file @
73ebce75
...
...
@@ -32,7 +32,7 @@ class ConsultAssistantEntryUtils {
ConsultantIn
.
toLogin
(
activity
)
}
else
{
// 请求接口获取咨询助理的uid
SearchApi
.
getSearchApi
().
getConsultAssistantUidRequest
(
location
)
SearchApi
.
getSearchApi
().
getConsultAssistantUidRequest
(
location
,
null
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
Consumer
{
...
...
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