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
9693cf2e
Commit
9693cf2e
authored
Jun 20, 2022
by
upwork.021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 情绪训练营代码提交
parent
f35d39b7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
19 deletions
+21
-19
config.gradle
config.gradle
+2
-2
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+2
-1
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+2
-2
ExpertSearchHttpImpl.kt
m-consultant/src/main/java/com/yidianling/consultant/http/ExpertSearchHttpImpl.kt
+2
-7
IExpertSearchHttp.kt
m-consultant/src/main/java/com/yidianling/consultant/http/IExpertSearchHttp.kt
+2
-1
SearchApi.kt
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
+1
-1
RecommendListView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
+9
-4
ErrorMessageConverter.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
+1
-1
No files found.
config.gradle
View file @
9693cf2e
...
...
@@ -6,7 +6,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.32"
,
"m-consultant"
:
"0.0.60.6
8
"
,
"m-consultant"
:
"0.0.60.6
9
"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.54"
,
"m-home"
:
"0.0.23.90"
,
...
...
@@ -93,7 +93,7 @@ ext {
// -------------- 业务模块 --------------
//第三步 若干
"m-confide"
:
"0.0.50.32"
,
"m-consultant"
:
"0.0.60.6
8
"
,
"m-consultant"
:
"0.0.60.6
9
"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.54"
,
"m-home"
:
"0.0.23.90"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
9693cf2e
...
...
@@ -406,6 +406,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
}
getPresenter
().
fetchListHead
()
recommendListView
.
requestData
(
initCategory
)
if
(
isRefresh
)
{
refresh
(
false
)
}
...
...
@@ -1471,7 +1472,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
refresh
(
false
)
recommendListView
.
requestData
()
recommendListView
.
requestData
(
initCategory
)
}
//刷新列表
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
9693cf2e
...
...
@@ -344,6 +344,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
allFilter
.
showType
.
key
=
initShowType
getPresenter
().
fetchListHead
()
recommendListView
.
requestData
(
""
)
v_loading
.
visibility
=
View
.
VISIBLE
v_loading
.
setViewType
(
LogoLoadingView
.
TYPE_LOADING
,
null
)
...
...
@@ -1342,8 +1343,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
refresh
(
false
)
recommendListView
.
requestData
()
recommendListView
.
requestData
(
""
)
}
/**
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/ExpertSearchHttpImpl.kt
View file @
9693cf2e
...
...
@@ -44,17 +44,12 @@ class ExpertSearchHttpImpl : IExpertSearchHttp {
return
searchApi
!!
}
// override fun searchDoctor(params: String?): Observable<BaseAPIResponse<ExpertSearchBean>> {
// return getSearchApi().searchDoctorService(HttpConfig.JAVA_BASE_URL+ "doctor/nlist?"+params)
//
// }
override
fun
getExpertList
(
map
:
Map
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
ExpertBean
>>
{
return
getSearchApi
().
getExpertList
(
map
)
}
override
fun
getBigShotData
():
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
{
return
getSearchApi
().
getBigShotData
()
override
fun
getBigShotData
(
map
:
Map
<
String
,
Any
>
):
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
{
return
getSearchApi
().
getBigShotData
(
map
)
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/IExpertSearchHttp.kt
View file @
9693cf2e
...
...
@@ -37,6 +37,6 @@ interface IExpertSearchHttp{
/**
* 获取大咖专区和顶部推荐数据数据
*/
fun
getBigShotData
():
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
fun
getBigShotData
(
map
:
Map
<
String
,
Any
>
):
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/model/SearchApi.kt
View file @
9693cf2e
...
...
@@ -77,7 +77,7 @@ interface SearchApi {
//获取咨询助理uid
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
,
"Content-Type:application/json"
)
@POST
(
"doctor/querySpecialTopic"
)
fun
getBigShotData
():
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
fun
getBigShotData
(
@Body
map
:
Map
<
String
,
@JvmSuppressWildcards
Any
>
):
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
View file @
9693cf2e
...
...
@@ -2,6 +2,7 @@ package com.yidianling.consultant.ui.view.topView
import
android.annotation.SuppressLint
import
android.content.Context
import
android.text.TextUtils
import
androidx.viewpager.widget.PagerAdapter
import
androidx.viewpager.widget.ViewPager
import
android.util.AttributeSet
...
...
@@ -71,12 +72,16 @@ class RecommendListView : LinearLayout {
recommendViewPagerIndicator
.
visibility
=
View
.
GONE
itemListView
.
visibility
=
View
.
GONE
requestData
()
//
requestData()
}
@SuppressLint
(
"CheckResult"
)
fun
requestData
()
{
ExpertSearchHttpImpl
.
getInstance
().
getBigShotData
()
fun
requestData
(
cateId
:
String
)
{
val
map
=
HashMap
<
String
,
Any
>()
if
(!
TextUtils
.
isEmpty
(
cateId
)){
map
[
"entrance"
]
=
cateId
}
ExpertSearchHttpImpl
.
getInstance
().
getBigShotData
(
map
)
.
subscribeOn
(
Schedulers
.
io
())
.
compose
(
RxUtils
.
resultJavaData
())
.
map
{
it
}
...
...
@@ -114,7 +119,7 @@ class RecommendListView : LinearLayout {
/**
* 设置数据
*/
fun
setData
()
{
private
fun
setData
()
{
// 顶部viewpager数据
if
(
mSceneSpecialTopicList
.
isNotEmpty
())
{
...
...
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
View file @
9693cf2e
...
...
@@ -690,7 +690,7 @@ public class ErrorMessageConverter {
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRNoSuccessResult
);
// @"批量操作无成功结果";
case
BaseConstants
.
ERR_TO_USER_INVALID
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRToUserInvalid
);
// @"IM: 无效接收方";
case
BaseConstants
.
ERR_REQUEST_TIMEOUT
:
case
BaseConstants
.
ERR_REQUEST_TIME
_
OUT
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRRequestTimeout
);
// @"请求超时";
case
BaseConstants
.
ERR_INIT_CORE_FAIL
:
return
getLocalizedString
(
R
.
string
.
TUIKitErrorSVRInitCoreFail
);
// @"INIT CORE模块失败";
...
...
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