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
822b9325
Commit
822b9325
authored
Mar 26, 2020
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
私聊部分的逻辑完成
parent
4974e23c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
7 deletions
+25
-7
config.gradle
config.gradle
+1
-1
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+2
-0
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+2
-0
ConsultAssistantDialogUtils.kt
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
+4
-0
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+3
-2
ServiceApi.kt
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceApi.kt
+1
-2
ServiceImpl.kt
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceImpl.kt
+8
-2
NewUserMesBean.kt
m-im/src/main/java/com/yidianling/uikit/custom/http/response/NewUserMesBean.kt
+4
-0
No files found.
config.gradle
View file @
822b9325
...
...
@@ -43,7 +43,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.48.7.7"
,
"m-consultant"
:
"0.0.5
7.4
"
,
"m-consultant"
:
"0.0.5
8.5
"
,
"m-fm"
:
"0.0.29.3"
,
"m-user"
:
"0.0.60.1"
,
"m-home"
:
"0.0.19.1"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
822b9325
...
...
@@ -87,6 +87,8 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
initViews
()
initData
(
intent
)
ActionCountUtils
.
count
(
"main_page|app_consult_list_page_visit|app_consult_list_page_visit"
)
}
override
fun
getStatusViewOptions
():
StatusBarOptions
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
822b9325
...
...
@@ -73,6 +73,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
title_layout
.
setPadding
(
DisplayUtils
.
dp2px
(
context
,
15
),
0
,
0
,
0
)
initViews
()
initData
()
ActionCountUtils
.
count
(
"main_page|app_consult_list_page_visit|app_consult_list_page_visit"
)
}
override
fun
initDataAndEventLazy
()
{
...
...
m-consultant/src/main/java/com/yidianling/consultant/modular/singlton/ConsultAssistantDialogUtils.kt
View file @
822b9325
...
...
@@ -8,6 +8,7 @@ import android.text.TextUtils
import
com.ydl.ydlcommon.data.http.ThrowableConsumer
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
import
com.ydl.ydlcommon.utils.YdlBuryPointUtil
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.ydl.ydlcommon.utils.remind.ToastHelper
import
com.yidianling.common.tools.ToastUtil
import
com.yidianling.consultant.ConsultAssistantCenterActivity
...
...
@@ -104,6 +105,7 @@ class ConsultAssistantDialogUtils private constructor() {
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
//获取用户uid
ActionCountUtils
.
count
(
"main_page|main_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"home_page_assistant_click"
)
getConsultAssistantUid
(
activity
)
}
...
...
@@ -157,6 +159,7 @@ class ConsultAssistantDialogUtils private constructor() {
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
// 咨询师列表页面且未登录情况下,跳转登录页面
if
(!
ConsultantIn
.
isLogin
())
{
...
...
@@ -178,6 +181,7 @@ class ConsultAssistantDialogUtils private constructor() {
activity
,
object
:
ConsultAssistantDialog
.
OnConsultAssistantClickListener
{
override
fun
onClickAction
()
{
ActionCountUtils
.
count
(
"app_consult_list_page|app_consult_list_daoyi_entry_click"
)
YdlBuryPointUtil
.
sendClick
(
"assistant_list_click"
)
// 咨询师列表页面且未登录情况下,跳转登录页面
if
(!
ConsultantIn
.
isLogin
())
{
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
822b9325
...
...
@@ -76,6 +76,7 @@ import com.yidianling.uikit.custom.bridge.ActionHandlerStorage;
import
com.yidianling.uikit.custom.bridge.IP2PCustomActionHandler
;
import
com.yidianling.uikit.custom.http.ServiceImpl
;
import
com.yidianling.uikit.custom.http.response.CommonQuestionBean
;
import
com.yidianling.uikit.custom.http.response.NewUserMesBean
;
import
com.yidianling.uikit.custom.http.response.SubmitUserInfoBean
;
import
com.yidianling.uikit.custom.http.response.UserQuestInfoBean
;
import
com.yidianling.uikit.custom.widget.ConfideOrderInfoView
;
...
...
@@ -405,7 +406,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
targetUid
=
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
toUid
;
}
}
ServiceImpl
.
Companion
.
getInstance
().
getNewUserMes
(
targetUid
)
ServiceImpl
.
Companion
.
getInstance
().
getNewUserMes
(
new
NewUserMesBean
(
targetUid
)
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
hasCollectedInResp
->
{
...
...
@@ -1294,7 +1295,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
resp
->
{
if
(
resp
.
data
!=
null
&&
resp
.
data
.
size
()
>
0
)
{
ServiceImpl
.
Companion
.
getInstance
().
getNewUserMes
(
""
)
ServiceImpl
.
Companion
.
getInstance
().
getNewUserMes
(
new
NewUserMesBean
(
""
)
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
hasCollectedInResp
->
{
...
...
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceApi.kt
View file @
822b9325
...
...
@@ -50,10 +50,9 @@ interface ServiceApi {
//获取新用户收集的信息
@FormUrlEncoded
@POST
(
"user/getNewUserMes"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
fun
getNewUserMes
(
@
Field
(
"targetUid"
)
targetUid
:
String
):
Observable
<
BaseAPIResponse
<
List
<
UserQuestInfoBean
>>>
fun
getNewUserMes
(
@
Body
body
:
RequestBody
):
Observable
<
BaseAPIResponse
<
List
<
UserQuestInfoBean
>>>
//获取用户来源的信息
@GET
(
"user/getExChannel"
)
...
...
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceImpl.kt
View file @
822b9325
package
com.yidianling.uikit.custom.http
import
com.alibaba.fastjson.JSON
import
com.ydl.ydlcommon.data.http.BaseAPIResponse
import
com.ydl.ydlnet.YDLHttpUtils
import
com.yidianling.uikit.custom.http.response.*
...
...
@@ -66,8 +67,13 @@ class ServiceImpl private constructor() {
/**
* 获取新用户收集的信息
*/
fun
getNewUserMes
(
targetUid
:
String
):
Observable
<
BaseAPIResponse
<
List
<
UserQuestInfoBean
>>>
{
return
YDLHttpUtils
.
obtainApi
(
ServiceApi
::
class
.
java
).
getNewUserMes
(
targetUid
)
fun
getNewUserMes
(
bean
:
NewUserMesBean
):
Observable
<
BaseAPIResponse
<
List
<
UserQuestInfoBean
>>>
{
val
beanStr
=
JSON
.
toJSONString
(
bean
)
val
body
=
RequestBody
.
create
(
MediaType
.
parse
(
"application/json; charset=utf-8"
),
beanStr
)
as
RequestBody
return
YDLHttpUtils
.
obtainApi
(
ServiceApi
::
class
.
java
).
getNewUserMes
(
body
)
}
/**
...
...
m-im/src/main/java/com/yidianling/uikit/custom/http/response/NewUserMesBean.kt
0 → 100644
View file @
822b9325
package
com.yidianling.uikit.custom.http.response
class
NewUserMesBean
(
val
targetUid
:
String
)
\ 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