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
a043a3f7
Commit
a043a3f7
authored
Jul 07, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into d/v_confide_optimized
# Conflicts: # config.gradle
parents
bbe9664c
894ab661
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
115 additions
and
111 deletions
+115
-111
config.gradle
config.gradle
+4
-5
ExpertSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
+4
-6
ExpertSearchFragment.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
+4
-4
ExpertSearchPresenter.kt
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
+17
-5
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
EnquiryItem.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/EnquiryItem.kt
+3
-2
Filters.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/Filters.kt
+3
-2
PriceRangesItem.kt
m-consultant/src/main/java/com/yidianling/consultant/model/bean/PriceRangesItem.kt
+9
-6
FilterPopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
+25
-41
RecommendListView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
+9
-4
consultant_item_price_range.xml
m-consultant/src/main/res/layout/consultant_item_price_range.xml
+1
-3
consultant_layout_search_content.xml
m-consultant/src/main/res/layout/consultant_layout_search_content.xml
+1
-1
consultant_ui_filter_popup.xml
m-consultant/src/main/res/layout/consultant_ui_filter_popup.xml
+5
-5
SystemConfigByKeywordBean.java
m-im/src/main/java/com/yidianling/im/bean/SystemConfigByKeywordBean.java
+4
-0
IMChatUtil.kt
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
+9
-2
RxDeviceTool.java
ydl-pay/src/main/java/com/yidianling/ydl_pay/common/http/utils/RxDeviceTool.java
+0
-9
build.gradle
ydl-platform/build.gradle
+0
-1
JPushUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/JPushUtils.kt
+7
-2
ActionCountUtils.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
+5
-4
RxDeviceTool.java
ydl-utils/src/main/java/com/yidianling/common/tools/RxDeviceTool.java
+0
-0
No files found.
config.gradle
View file @
a043a3f7
...
@@ -5,22 +5,22 @@ ext {
...
@@ -5,22 +5,22 @@ ext {
// -------------- 业务模块 --------------
// -------------- 业务模块 --------------
//第三步 若干
//第三步 若干
"m-confide"
:
"0.0.50.50"
,
"m-confide"
:
"0.0.50.50"
,
"m-consultant"
:
"0.0.60.7
4
"
,
"m-consultant"
:
"0.0.60.7
8
"
,
"m-fm"
:
"0.0.30.09"
,
"m-fm"
:
"0.0.30.09"
,
"m-user"
:
"0.0.62.72"
,
"m-user"
:
"0.0.62.72"
,
"m-home"
:
"0.0.24.00"
,
"m-home"
:
"0.0.24.00"
,
"m-im"
:
"0.0.21.6
7
"
,
"m-im"
:
"0.0.21.6
9
"
,
"m-dynamic"
:
"0.0.7.80"
,
"m-dynamic"
:
"0.0.7.80"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.87"
,
"m-muse"
:
"0.0.28.87"
,
"m-tests"
:
"0.0.24.24"
,
"m-tests"
:
"0.0.24.24"
,
"m-course"
:
"0.0.43.39"
,
"m-course"
:
"0.0.43.39"
,
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//mdt 组件
//mdt 组件
"ydl-tuicore"
:
"0.0.25"
,
"ydl-tuicore"
:
"0.0.25"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.41.51"
,
"ydl-platform"
:
"0.0.41.54"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.39.03"
,
"ydl-webview"
:
"0.0.39.03"
,
"ydl-media"
:
"0.0.21.52"
,
"ydl-media"
:
"0.0.21.52"
,
...
@@ -165,7 +165,6 @@ ext {
...
@@ -165,7 +165,6 @@ ext {
"cube"
:
"in.srain.cube:cube-sdk:1.0.44@aar"
,
"cube"
:
"in.srain.cube:cube-sdk:1.0.44@aar"
,
"support-multidex"
:
'androidx.multidex:multidex:2.0.0'
,
"support-multidex"
:
'androidx.multidex:multidex:2.0.0'
,
"ydl-ijkplayer-jjdxm"
:
"com.ydl:jjdxm-ijkplayer:0.0.33"
,
"ydl-ijkplayer-jjdxm"
:
"com.ydl:jjdxm-ijkplayer:0.0.33"
,
"robust"
:
"com.meituan.robust:robust:0.4.87"
,
"walle"
:
"com.meituan.android.walle:library:1.1.5"
,
"walle"
:
"com.meituan.android.walle:library:1.1.5"
,
"jpush"
:
"cn.jiguang.sdk:jpush:3.3.6"
,
"jpush"
:
"cn.jiguang.sdk:jpush:3.3.6"
,
"jcore"
:
"cn.jiguang.sdk:jcore:2.1.4"
,
"jcore"
:
"cn.jiguang.sdk:jcore:2.1.4"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchActivity.kt
View file @
a043a3f7
...
@@ -114,10 +114,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -114,10 +114,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
private
const
val
FILTER_STATUS_NORMAL
=
0
//默认筛选状态
private
const
val
FILTER_STATUS_NORMAL
=
0
//默认筛选状态
private
const
val
FILTER_STATUS_FILTERED
=
1
//非默认筛选状态
private
const
val
FILTER_STATUS_FILTERED
=
1
//非默认筛选状态
private
const
val
FILTER_STATUS_OPEN
=
2
//筛选窗打开状态
private
const
val
FILTER_STATUS_OPEN
=
2
//筛选窗打开状态
const
val
FROM_HOME_SREARCH
=
0
const
val
FROM_FIND_EXPERT
=
1
const
val
FROM_ONLINE_EXPERT
=
2
const
val
FROM_ONLINE_EXPERT
=
2
const
val
PAGE_SIZE
=
15
fun
newIntent
(
fun
newIntent
(
activity
:
Activity
,
activity
:
Activity
,
...
@@ -406,6 +403,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -406,6 +403,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
}
}
getPresenter
().
fetchListHead
()
getPresenter
().
fetchListHead
()
recommendListView
.
requestData
(
initCategory
)
if
(
isRefresh
)
{
if
(
isRefresh
)
{
refresh
(
false
)
refresh
(
false
)
}
}
...
@@ -1061,8 +1059,8 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -1061,8 +1059,8 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
viewDim
.
visibility
=
View
.
INVISIBLE
viewDim
.
visibility
=
View
.
INVISIBLE
viewDim_filter
.
visibility
=
View
.
GONE
viewDim_filter
.
visibility
=
View
.
GONE
if
(
allFilter
.
others
.
size
+
allFilter
.
enquiries
.
size
+
allFilter
.
ages
.
size
+
allFilter
.
doctorEdu
.
size
+
allFilter
.
title
.
size
>
0
||
!
TextUtils
.
isEmpty
(
if
(
allFilter
.
others
.
size
+
allFilter
.
enquiries
.
size
+
allFilter
.
ages
.
size
+
allFilter
.
doctorEdu
.
size
+
allFilter
.
title
.
size
>
0
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
min
P
rice
allFilter
.
priceRanges
?.
min
_p
rice
)
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
max
P
rice
)
)
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
max
_p
rice
)
)
{
)
{
updateFilterTextViewStatus
(
tvFilter
,
FILTER_STATUS_FILTERED
)
updateFilterTextViewStatus
(
tvFilter
,
FILTER_STATUS_FILTERED
)
}
else
{
}
else
{
...
@@ -1471,7 +1469,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
...
@@ -1471,7 +1469,7 @@ class ExpertSearchActivity : BaseMvpActivity<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
override
fun
onRefresh
()
{
refresh
(
false
)
refresh
(
false
)
recommendListView
.
requestData
()
recommendListView
.
requestData
(
initCategory
)
}
}
//刷新列表
//刷新列表
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchFragment.kt
View file @
a043a3f7
...
@@ -346,6 +346,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
...
@@ -346,6 +346,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
allFilter
.
showType
.
key
=
initShowType
allFilter
.
showType
.
key
=
initShowType
getPresenter
().
fetchListHead
()
getPresenter
().
fetchListHead
()
recommendListView
.
requestData
(
""
)
v_loading
.
visibility
=
View
.
VISIBLE
v_loading
.
visibility
=
View
.
VISIBLE
v_loading
.
setViewType
(
LogoLoadingView
.
TYPE_LOADING
,
null
)
v_loading
.
setViewType
(
LogoLoadingView
.
TYPE_LOADING
,
null
)
...
@@ -940,8 +941,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
...
@@ -940,8 +941,8 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
viewDim
.
visibility
=
View
.
INVISIBLE
viewDim
.
visibility
=
View
.
INVISIBLE
viewDim_filter
.
visibility
=
View
.
GONE
viewDim_filter
.
visibility
=
View
.
GONE
if
(
allFilter
.
others
.
size
+
allFilter
.
enquiries
.
size
+
allFilter
.
ages
.
size
+
allFilter
.
doctorEdu
.
size
+
allFilter
.
title
.
size
+
allFilter
.
specialityCrowd
.
size
>
0
||
!
TextUtils
.
isEmpty
(
if
(
allFilter
.
others
.
size
+
allFilter
.
enquiries
.
size
+
allFilter
.
ages
.
size
+
allFilter
.
doctorEdu
.
size
+
allFilter
.
title
.
size
+
allFilter
.
specialityCrowd
.
size
>
0
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
min
P
rice
allFilter
.
priceRanges
?.
min
_p
rice
)
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
max
P
rice
)
)
||
!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
max
_p
rice
)
)
{
)
{
updateFilterTextViewStatus
(
tvFilter
,
FILTER_STATUS_FILTERED
)
updateFilterTextViewStatus
(
tvFilter
,
FILTER_STATUS_FILTERED
)
}
else
{
}
else
{
...
@@ -1344,8 +1345,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
...
@@ -1344,8 +1345,7 @@ class ExpertSearchFragment : BaseMvpFragment<IExpertSearchView, ExpertSearchPres
override
fun
onRefresh
()
{
override
fun
onRefresh
()
{
refresh
(
false
)
refresh
(
false
)
recommendListView
.
requestData
()
recommendListView
.
requestData
(
""
)
}
}
/**
/**
...
...
m-consultant/src/main/java/com/yidianling/consultant/ExpertSearchPresenter.kt
View file @
a043a3f7
...
@@ -87,10 +87,18 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
...
@@ -87,10 +87,18 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
filterMap
[
"tags.tag_id"
]
=
categoriesMap
filterMap
[
"tags.tag_id"
]
=
categoriesMap
}
}
// 地区
// 地区
if
(
allFilter
.
region
.
value
==
"海外"
)
{
if
(
allFilter
.
region
.
code
==
"ABROAD"
)
{
// 海外
if
(
allFilter
.
region
.
code
==
allFilter
.
sub
.
code
){
// 海外不限
val
abroadMap
=
HashMap
<
String
,
Any
>()
abroadMap
[
"ne"
]
=
"1"
filterMap
[
"country_code"
]
=
abroadMap
}
else
{
filterMap
[
"country_code"
]
=
allFilter
.
sub
.
code
!!
}
}
else
if
(
allFilter
.
region
.
code
==
"1"
&&
allFilter
.
region
.
code
==
allFilter
.
sub
.
code
){
// 全国不限
filterMap
[
"country_code"
]
=
allFilter
.
sub
.
code
filterMap
[
"country_code"
]
=
allFilter
.
sub
.
code
}
else
{
}
else
{
if
(
allFilter
.
region
.
code
!=
null
&&
allFilter
.
region
.
code
!=
"1"
)
{
if
(
allFilter
.
region
.
code
!=
null
)
{
filterMap
[
"province_code"
]
=
allFilter
.
region
.
code
filterMap
[
"province_code"
]
=
allFilter
.
region
.
code
}
}
if
(
allFilter
.
sub
.
code
!=
null
&&
allFilter
.
sub
.
code
!=
allFilter
.
region
.
code
)
{
if
(
allFilter
.
sub
.
code
!=
null
&&
allFilter
.
sub
.
code
!=
allFilter
.
region
.
code
)
{
...
@@ -110,8 +118,12 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
...
@@ -110,8 +118,12 @@ class ExpertSearchPresenter : SimplePresenter<IExpertSearchView>() {
// 服务均价
// 服务均价
if
(
allFilter
.
priceRanges
!=
null
)
{
if
(
allFilter
.
priceRanges
!=
null
)
{
val
avgPriceMap
=
HashMap
<
String
,
Any
?>()
val
avgPriceMap
=
HashMap
<
String
,
Any
?>()
avgPriceMap
[
"gte"
]
=
allFilter
.
priceRanges
?.
minPrice
if
(!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
min_price
)){
avgPriceMap
[
"lte"
]
=
allFilter
.
priceRanges
?.
maxPrice
avgPriceMap
[
"gte"
]
=
allFilter
.
priceRanges
?.
min_price
}
if
(!
TextUtils
.
isEmpty
(
allFilter
.
priceRanges
?.
max_price
))
{
avgPriceMap
[
"lte"
]
=
allFilter
.
priceRanges
?.
max_price
}
filterMap
[
"avg_price"
]
=
avgPriceMap
filterMap
[
"avg_price"
]
=
avgPriceMap
}
}
// 年龄
// 年龄
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/ExpertSearchHttpImpl.kt
View file @
a043a3f7
...
@@ -44,17 +44,12 @@ class ExpertSearchHttpImpl : IExpertSearchHttp {
...
@@ -44,17 +44,12 @@ class ExpertSearchHttpImpl : IExpertSearchHttp {
return
searchApi
!!
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
>>
{
override
fun
getExpertList
(
map
:
Map
<
String
,
Any
>):
Observable
<
BaseAPIResponse
<
ExpertBean
>>
{
return
getSearchApi
().
getExpertList
(
map
)
return
getSearchApi
().
getExpertList
(
map
)
}
}
override
fun
getBigShotData
():
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
{
override
fun
getBigShotData
(
map
:
Map
<
String
,
Any
>
):
Observable
<
BaseAPIResponse
<
ExpertSearchTopShowBean
>>
{
return
getSearchApi
().
getBigShotData
()
return
getSearchApi
().
getBigShotData
(
map
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/http/IExpertSearchHttp.kt
View file @
a043a3f7
...
@@ -37,6 +37,6 @@ interface IExpertSearchHttp{
...
@@ -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 @
a043a3f7
...
@@ -77,7 +77,7 @@ interface SearchApi {
...
@@ -77,7 +77,7 @@ interface SearchApi {
//获取咨询助理uid
//获取咨询助理uid
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
,
"Content-Type:application/json"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
,
"Content-Type:application/json"
)
@POST
(
"doctor/querySpecialTopic"
)
@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
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/model/bean/EnquiryItem.kt
View file @
a043a3f7
...
@@ -10,6 +10,6 @@ data class EnquiryItem(
...
@@ -10,6 +10,6 @@ data class EnquiryItem(
@field
:
SerializedName
(
"key"
)
@field
:
SerializedName
(
"key"
)
val
key
:
Int
,
val
key
:
Int
,
val
check
R
rl
:
String
?,
val
check
_u
rl
:
String
?,
val
un
CheckU
rl
:
String
?
val
un
_check_u
rl
:
String
?
)
)
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/model/bean/Filters.kt
View file @
a043a3f7
...
@@ -30,7 +30,7 @@ data class Filters(
...
@@ -30,7 +30,7 @@ data class Filters(
/**
/**
* 服务均价
* 服务均价
*/
*/
@field
:
SerializedName
(
"price
R
anges"
)
@field
:
SerializedName
(
"price
_r
anges"
)
val
priceRanges
:
List
<
PriceRangesItem
>
=
ArrayList
(),
val
priceRanges
:
List
<
PriceRangesItem
>
=
ArrayList
(),
/**
/**
...
@@ -49,6 +49,6 @@ data class Filters(
...
@@ -49,6 +49,6 @@ data class Filters(
/**
/**
* 擅长人群
* 擅长人群
*/
*/
@field
:
SerializedName
(
"speciality
C
rowd"
)
@field
:
SerializedName
(
"speciality
_c
rowd"
)
val
specialityCrowd
:
ArrayList
<
SpecialityCrowdBean
>
=
ArrayList
()
val
specialityCrowd
:
ArrayList
<
SpecialityCrowdBean
>
=
ArrayList
()
)
)
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/model/bean/PriceRangesItem.kt
View file @
a043a3f7
...
@@ -4,12 +4,14 @@ import com.google.gson.annotations.SerializedName
...
@@ -4,12 +4,14 @@ import com.google.gson.annotations.SerializedName
data class
PriceRangesItem
(
data class
PriceRangesItem
(
@field
:
SerializedName
(
"min
P
rice"
)
@field
:
SerializedName
(
"min
_p
rice"
)
var
min
P
rice
:
String
?
=
null
,
var
min
_p
rice
:
String
?
=
null
,
@field
:
SerializedName
(
"max
P
rice"
)
@field
:
SerializedName
(
"max
_p
rice"
)
var
max
P
rice
:
String
?
=
null
,
var
max
_p
rice
:
String
?
=
null
,
@SerializedName
(
"recommendPercent"
)
@SerializedName
(
"recommend_percent"
)
var
recommendPercent
:
String
?
=
null
var
recommend_percent
:
String
?
=
null
,
var
display_range
:
String
?
=
null
)
)
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
View file @
a043a3f7
...
@@ -43,7 +43,6 @@ class FilterPopupWindow(
...
@@ -43,7 +43,6 @@ class FilterPopupWindow(
private
val
tempFilter
:
AllFilter
private
val
tempFilter
:
AllFilter
)
:
PopupWindow
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
{
)
:
PopupWindow
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
ViewGroup
.
LayoutParams
.
WRAP_CONTENT
)
{
private
val
mDisposableList
=
CompositeDisposable
()
private
val
showTypeViews
:
ArrayList
<
View
>
=
ArrayList
()
private
val
showTypeViews
:
ArrayList
<
View
>
=
ArrayList
()
private
val
enquiryViews
:
ArrayList
<
View
>
=
ArrayList
()
private
val
enquiryViews
:
ArrayList
<
View
>
=
ArrayList
()
...
@@ -168,7 +167,7 @@ class FilterPopupWindow(
...
@@ -168,7 +167,7 @@ class FilterPopupWindow(
tempFilter
.
enquiries
.
forEach
{
tempFilter
.
enquiries
.
forEach
{
if
(
textView
.
text
.
toString
()
==
it
.
value
)
{
if
(
textView
.
text
.
toString
()
==
it
.
value
)
{
Glide
.
with
(
context
)
Glide
.
with
(
context
)
.
load
(
it
.
un
CheckU
rl
)
.
load
(
it
.
un
_check_u
rl
)
.
into
(
ivIcon
)
.
into
(
ivIcon
)
}
}
}
}
...
@@ -269,15 +268,15 @@ class FilterPopupWindow(
...
@@ -269,15 +268,15 @@ class FilterPopupWindow(
}
}
if
(
tempFilter
.
priceRanges
!=
null
)
{
if
(
tempFilter
.
priceRanges
!=
null
)
{
sb
.
append
(
"&minPrice="
).
append
(
tempFilter
.
priceRanges
?.
min
P
rice
)
sb
.
append
(
"&minPrice="
).
append
(
tempFilter
.
priceRanges
?.
min
_p
rice
)
sb
.
append
(
"&maxPrice="
).
append
(
tempFilter
.
priceRanges
?.
max
P
rice
)
sb
.
append
(
"&maxPrice="
).
append
(
tempFilter
.
priceRanges
?.
max
_p
rice
)
if
(
ConsultBIConstants
.
POSITION_AVERAGE_SERVICE_INPUT
==
biEventName
)
{
if
(
ConsultBIConstants
.
POSITION_AVERAGE_SERVICE_INPUT
==
biEventName
)
{
var
account
=
0.0
var
account
=
0.0
if
(!
TextUtils
.
isEmpty
(
tempFilter
.
priceRanges
?.
min
P
rice
))
{
if
(!
TextUtils
.
isEmpty
(
tempFilter
.
priceRanges
?.
min
_p
rice
))
{
account
+=
tempFilter
.
priceRanges
?.
min
P
rice
?.
toDouble
()
!!
account
+=
tempFilter
.
priceRanges
?.
min
_p
rice
?.
toDouble
()
!!
}
}
if
(!
TextUtils
.
isEmpty
(
tempFilter
.
priceRanges
?.
max
P
rice
))
{
if
(!
TextUtils
.
isEmpty
(
tempFilter
.
priceRanges
?.
max
_p
rice
))
{
account
+=
tempFilter
.
priceRanges
?.
max
P
rice
?.
toDouble
()
!!
account
+=
tempFilter
.
priceRanges
?.
max
_p
rice
?.
toDouble
()
!!
}
}
biEventParams
=
((
account
/
2
).
roundToInt
()).
toString
()
biEventParams
=
((
account
/
2
).
roundToInt
()).
toString
()
...
@@ -334,9 +333,6 @@ class FilterPopupWindow(
...
@@ -334,9 +333,6 @@ class FilterPopupWindow(
}
}
}
}
fun
addSubscription
(
disposable
:
Disposable
)
{
mDisposableList
.
add
(
disposable
)
}
/**
/**
* 其他选择
* 其他选择
...
@@ -573,7 +569,7 @@ class FilterPopupWindow(
...
@@ -573,7 +569,7 @@ class FilterPopupWindow(
llLayout
.
layoutParams
=
params
llLayout
.
layoutParams
=
params
textView
.
text
=
enquiry
.
value
textView
.
text
=
enquiry
.
value
Glide
.
with
(
context
)
Glide
.
with
(
context
)
.
load
(
enquiry
.
un
CheckU
rl
)
.
load
(
enquiry
.
un
_check_u
rl
)
.
into
(
ivIcon
)
.
into
(
ivIcon
)
enquiryViews
.
add
(
llLayout
)
enquiryViews
.
add
(
llLayout
)
...
@@ -581,7 +577,7 @@ class FilterPopupWindow(
...
@@ -581,7 +577,7 @@ class FilterPopupWindow(
llLayout
.
isSelected
=
true
llLayout
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
textView
.
paint
.
isFakeBoldText
=
true
Glide
.
with
(
context
)
Glide
.
with
(
context
)
.
load
(
enquiry
.
check
R
rl
)
.
load
(
enquiry
.
check
_u
rl
)
.
into
(
ivIcon
)
.
into
(
ivIcon
)
}
}
llLayout
.
setOnClickListener
{
llLayout
.
setOnClickListener
{
...
@@ -590,14 +586,14 @@ class FilterPopupWindow(
...
@@ -590,14 +586,14 @@ class FilterPopupWindow(
llLayout
.
isSelected
=
false
llLayout
.
isSelected
=
false
textView
.
paint
.
isFakeBoldText
=
false
textView
.
paint
.
isFakeBoldText
=
false
Glide
.
with
(
context
)
Glide
.
with
(
context
)
.
load
(
enquiry
.
un
CheckU
rl
)
.
load
(
enquiry
.
un
_check_u
rl
)
.
into
(
ivIcon
)
.
into
(
ivIcon
)
}
else
{
}
else
{
tempFilter
.
enquiries
.
add
(
enquiry
)
tempFilter
.
enquiries
.
add
(
enquiry
)
llLayout
.
isSelected
=
true
llLayout
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
textView
.
paint
.
isFakeBoldText
=
true
Glide
.
with
(
context
)
Glide
.
with
(
context
)
.
load
(
enquiry
.
check
R
rl
)
.
load
(
enquiry
.
check
_u
rl
)
.
into
(
ivIcon
)
.
into
(
ivIcon
)
}
}
updateCount
(
ConsultBIConstants
.
POSITION_CONSULT_TYPE_CLICK
)
updateCount
(
ConsultBIConstants
.
POSITION_CONSULT_TYPE_CLICK
)
...
@@ -607,14 +603,13 @@ class FilterPopupWindow(
...
@@ -607,14 +603,13 @@ class FilterPopupWindow(
}
}
private
fun
initPriceViews
(
view
:
View
)
{
private
fun
initPriceViews
(
view
:
View
)
{
val
priceRange
=
val
priceRange
=
View
.
inflate
(
context
,
R
.
layout
.
consultant_item_price_range
,
null
)
as
LinearLayout
View
.
inflate
(
context
,
R
.
layout
.
consultant_item_price_range
,
null
)
as
LinearLayout
etMinPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMinPrice
);
etMinPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMinPrice
);
etMaxPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMaxPrice
);
etMaxPrice
=
priceRange
.
findViewById
(
R
.
id
.
etMaxPrice
);
val
imm
=
context
.
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
)
as
InputMethodManager
//
context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
va
r
listener
:
TextView
.
OnEditorActionListener
=
va
l
listener
:
TextView
.
OnEditorActionListener
=
TextView
.
OnEditorActionListener
{
_
,
actionId
,
event
->
TextView
.
OnEditorActionListener
{
_
,
actionId
,
event
->
if
(
actionId
==
EditorInfo
.
IME_ACTION_DONE
||
event
!=
null
&&
event
.
keyCode
==
KeyEvent
.
KEYCODE_ENTER
)
{
if
(
actionId
==
EditorInfo
.
IME_ACTION_DONE
||
event
!=
null
&&
event
.
keyCode
==
KeyEvent
.
KEYCODE_ENTER
)
{
updatePriceFilter
()
updatePriceFilter
()
...
@@ -625,8 +620,8 @@ class FilterPopupWindow(
...
@@ -625,8 +620,8 @@ class FilterPopupWindow(
}
}
if
(
tempFilter
.
priceRanges
!=
null
)
{
if
(
tempFilter
.
priceRanges
!=
null
)
{
etMinPrice
?.
setText
(
tempFilter
.
priceRanges
?.
min
P
rice
)
etMinPrice
?.
setText
(
tempFilter
.
priceRanges
?.
min
_p
rice
)
etMaxPrice
?.
setText
(
tempFilter
.
priceRanges
?.
max
P
rice
)
etMaxPrice
?.
setText
(
tempFilter
.
priceRanges
?.
max
_p
rice
)
}
}
etMaxPrice
?.
setOnEditorActionListener
(
listener
)
etMaxPrice
?.
setOnEditorActionListener
(
listener
)
...
@@ -673,16 +668,7 @@ class FilterPopupWindow(
...
@@ -673,16 +668,7 @@ class FilterPopupWindow(
0
0
)
)
textView
.
layoutParams
=
params
textView
.
layoutParams
=
params
val
maxPriceStr
=
val
contentStr
=
String
.
format
(
"%s\n%s"
,
priceRangesItem
.
display_range
,
priceRangesItem
.
recommend_percent
)
if
(
TextUtils
.
isEmpty
(
priceRangesItem
.
maxPrice
))
"+"
else
"-"
+
priceRangesItem
.
maxPrice
val
contentStr
=
String
.
format
(
"%s%s\n%s"
,
priceRangesItem
.
minPrice
,
maxPriceStr
,
priceRangesItem
.
recommendPercent
)
val
msp
=
SpannableString
(
contentStr
)
val
msp
=
SpannableString
(
contentStr
)
msp
.
setSpan
(
msp
.
setSpan
(
AbsoluteSizeSpan
(
10
,
true
),
AbsoluteSizeSpan
(
10
,
true
),
...
@@ -690,8 +676,7 @@ class FilterPopupWindow(
...
@@ -690,8 +676,7 @@ class FilterPopupWindow(
contentStr
.
length
,
contentStr
.
length
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
)
)
textView
.
text
=
msp
textView
.
text
=
msp
;
textView
.
setSingleLine
(
false
)
textView
.
setSingleLine
(
false
)
textView
.
setLineSpacing
(
1.0f
,
1.2f
)
textView
.
setLineSpacing
(
1.0f
,
1.2f
)
...
@@ -717,13 +702,14 @@ class FilterPopupWindow(
...
@@ -717,13 +702,14 @@ class FilterPopupWindow(
etMaxPrice
?.
setText
(
""
)
etMaxPrice
?.
setText
(
""
)
etMinPrice
?.
setText
(
""
)
etMinPrice
?.
setText
(
""
)
}
else
{
}
else
{
tempFilter
.
priceRanges
=
tempFilter
.
priceRanges
=
priceRangesItem
.
copy
(
min_price
=
priceRangesItem
.
min_price
,
max_price
=
priceRangesItem
.
max_price
)
priceRangesItem
.
copy
(
priceRangesItem
.
minPrice
,
priceRangesItem
.
maxPrice
)
textView
.
isSelected
=
true
textView
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
textView
.
paint
.
isFakeBoldText
=
true
tempFilter
.
priceRangesView
=
textView
tempFilter
.
priceRangesView
=
textView
etMinPrice
?.
setText
(
priceRangesItem
.
minPrice
)
etMinPrice
?.
setText
(
priceRangesItem
.
min_price
)
etMaxPrice
?.
setText
(
priceRangesItem
.
maxPrice
)
etMaxPrice
?.
setText
(
priceRangesItem
.
max_price
)
etMinPrice
?.
setSelection
(
etMinPrice
?.
text
!!
.
length
)
etMaxPrice
?.
setSelection
(
etMaxPrice
?.
text
!!
.
length
)
}
}
updateCount
(
ConsultBIConstants
.
POSITION_AVERAGE_SERVICE_INPUT
)
updateCount
(
ConsultBIConstants
.
POSITION_AVERAGE_SERVICE_INPUT
)
...
@@ -743,8 +729,8 @@ class FilterPopupWindow(
...
@@ -743,8 +729,8 @@ class FilterPopupWindow(
tempFilter
.
priceRanges
=
priceRangesItem
;
tempFilter
.
priceRanges
=
priceRangesItem
;
}
}
tempFilter
.
priceRanges
!!
.
max
P
rice
=
etMaxPrice
?.
text
.
toString
()
tempFilter
.
priceRanges
!!
.
max
_p
rice
=
etMaxPrice
?.
text
.
toString
()
tempFilter
.
priceRanges
!!
.
min
P
rice
=
etMinPrice
?.
text
.
toString
()
tempFilter
.
priceRanges
!!
.
min
_p
rice
=
etMinPrice
?.
text
.
toString
()
tempFilter
.
priceRangesView
?.
isSelected
=
false
tempFilter
.
priceRangesView
?.
isSelected
=
false
tempFilter
.
priceRangesView
?.
paint
?.
isFakeBoldText
=
false
tempFilter
.
priceRangesView
?.
paint
?.
isFakeBoldText
=
false
tempFilter
.
priceRangesView
=
null
tempFilter
.
priceRangesView
=
null
...
@@ -794,7 +780,6 @@ class FilterPopupWindow(
...
@@ -794,7 +780,6 @@ class FilterPopupWindow(
}
}
override
fun
dismiss
()
{
override
fun
dismiss
()
{
mDisposableList
.
clear
()
super
.
dismiss
()
super
.
dismiss
()
}
}
}
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
View file @
a043a3f7
...
@@ -2,6 +2,7 @@ package com.yidianling.consultant.ui.view.topView
...
@@ -2,6 +2,7 @@ package com.yidianling.consultant.ui.view.topView
import
android.annotation.SuppressLint
import
android.annotation.SuppressLint
import
android.content.Context
import
android.content.Context
import
android.text.TextUtils
import
androidx.viewpager.widget.PagerAdapter
import
androidx.viewpager.widget.PagerAdapter
import
androidx.viewpager.widget.ViewPager
import
androidx.viewpager.widget.ViewPager
import
android.util.AttributeSet
import
android.util.AttributeSet
...
@@ -71,12 +72,16 @@ class RecommendListView : LinearLayout {
...
@@ -71,12 +72,16 @@ class RecommendListView : LinearLayout {
recommendViewPagerIndicator
.
visibility
=
View
.
GONE
recommendViewPagerIndicator
.
visibility
=
View
.
GONE
itemListView
.
visibility
=
View
.
GONE
itemListView
.
visibility
=
View
.
GONE
requestData
()
//
requestData()
}
}
@SuppressLint
(
"CheckResult"
)
@SuppressLint
(
"CheckResult"
)
fun
requestData
()
{
fun
requestData
(
cateId
:
String
)
{
ExpertSearchHttpImpl
.
getInstance
().
getBigShotData
()
val
map
=
HashMap
<
String
,
Any
>()
if
(!
TextUtils
.
isEmpty
(
cateId
)){
map
[
"entrance"
]
=
cateId
}
ExpertSearchHttpImpl
.
getInstance
().
getBigShotData
(
map
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
.
compose
(
RxUtils
.
resultJavaData
())
.
compose
(
RxUtils
.
resultJavaData
())
.
map
{
it
}
.
map
{
it
}
...
@@ -114,7 +119,7 @@ class RecommendListView : LinearLayout {
...
@@ -114,7 +119,7 @@ class RecommendListView : LinearLayout {
/**
/**
* 设置数据
* 设置数据
*/
*/
fun
setData
()
{
private
fun
setData
()
{
// 顶部viewpager数据
// 顶部viewpager数据
if
(
mSceneSpecialTopicList
.
isNotEmpty
())
{
if
(
mSceneSpecialTopicList
.
isNotEmpty
())
{
...
...
m-consultant/src/main/res/layout/consultant_item_price_range.xml
View file @
a043a3f7
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
android:background=
"@drawable/shape_round_gray_bored"
android:background=
"@drawable/shape_round_gray_bored"
android:inputType=
"number"
android:inputType=
"number"
android:maxLines=
"1"
android:maxLines=
"1"
android:textCursorDrawable=
"@color/platform_main_theme"
android:textSize=
"13sp"
android:textSize=
"13sp"
android:maxLength=
"7"
android:maxLength=
"7"
/>
/>
...
@@ -45,9 +44,8 @@
...
@@ -45,9 +44,8 @@
android:layout_marginLeft=
"10dp"
android:layout_marginLeft=
"10dp"
android:background=
"@drawable/shape_round_gray_bored"
android:background=
"@drawable/shape_round_gray_bored"
android:inputType=
"number"
android:inputType=
"number"
android:maxLines=
"1"
android:textCursorDrawable=
"@color/platform_main_theme"
android:textSize=
"13sp"
android:textSize=
"13sp"
android:maxLines=
"1"
android:maxLength=
"7"
android:maxLength=
"7"
/>
/>
...
...
m-consultant/src/main/res/layout/consultant_layout_search_content.xml
View file @
a043a3f7
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
android:width=
"0dp"
android:width=
"0dp"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableEnd=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:drawableRight=
"@drawable/platform_ic_arrow_drop_down_grey_500_18dp"
android:text=
"
@string/platform_theme
"
android:text=
"
困扰
"
android:textColor=
"@color/platform_color_242424"
/>
android:textColor=
"@color/platform_color_242424"
/>
<com.ydl.ydlcommon.view.DrawableRightTextView
<com.ydl.ydlcommon.view.DrawableRightTextView
...
...
m-consultant/src/main/res/layout/consultant_ui_filter_popup.xml
View file @
a043a3f7
...
@@ -195,15 +195,16 @@
...
@@ -195,15 +195,16 @@
android:background=
"@color/platform_white"
android:background=
"@color/platform_white"
android:orientation=
"horizontal"
>
android:orientation=
"horizontal"
>
<TextView
<TextView
android:id=
"@+id/btnReset"
android:id=
"@+id/btnReset"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"44dp"
android:layout_height=
"44dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/consultant_
bg_radius_gray_6
"
android:background=
"@drawable/consultant_
stroke_ebebeb_r_8
"
android:gravity=
"center"
android:gravity=
"center"
android:text=
"@string/platform_reset"
android:text=
"@string/platform_reset"
android:textColor=
"@color/platform_color_
999999
"
android:textColor=
"@color/platform_color_
242424
"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
<TextView
<TextView
...
@@ -212,11 +213,10 @@
...
@@ -212,11 +213,10 @@
android:layout_height=
"44dp"
android:layout_height=
"44dp"
android:layout_marginStart=
"10dp"
android:layout_marginStart=
"10dp"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:background=
"@drawable/consultant_
bg_radius_5_dark
"
android:background=
"@drawable/consultant_
solid_main_theme_color_r_8
"
android:gravity=
"center"
android:gravity=
"center"
android:
hin
t=
"确定"
android:
tex
t=
"确定"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textColorHint=
"@color/platform_color_E0E0E0"
android:textSize=
"16sp"
/>
android:textSize=
"16sp"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
m-im/src/main/java/com/yidianling/im/bean/SystemConfigByKeywordBean.java
View file @
a043a3f7
...
@@ -18,4 +18,8 @@ public class SystemConfigByKeywordBean {
...
@@ -18,4 +18,8 @@ public class SystemConfigByKeywordBean {
*/
*/
public
String
value1
;
public
String
value1
;
/**
* 0:不弹信息卡,1:弹信息卡
* */
public
String
value2
;
}
}
m-im/src/main/java/com/yidianling/im/helper/IMChatUtil.kt
View file @
a043a3f7
...
@@ -63,6 +63,8 @@ object IMChatUtil {
...
@@ -63,6 +63,8 @@ object IMChatUtil {
private
const
val
USER_TYPE_EXPERT
=
2
//专家
private
const
val
USER_TYPE_EXPERT
=
2
//专家
private
const
val
USER_TYPE_ASSISTANT
=
3
//助理
private
const
val
USER_TYPE_ASSISTANT
=
3
//助理
private
const
val
USER_TYPE_USER
=
1
//用户
private
const
val
USER_TYPE_USER
=
1
//用户
//展示信息收集卡
private
const
val
SHOW_EMS_POP
=
1L
lateinit
var
doctorId
:
String
lateinit
var
doctorId
:
String
/**
/**
...
@@ -98,7 +100,9 @@ object IMChatUtil {
...
@@ -98,7 +100,9 @@ object IMChatUtil {
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
.
subscribe
{
val
skipTime
=
it
.
value1
.
toLong
()
val
skipTime
=
it
.
value1
.
toLong
()
if
(
isJumpToIm
(
skipTime
))
{
//0:不弹信息卡,1:弹信息卡
val
isPopCms
=
it
.
value2
.
toLong
()
if
(
SHOW_EMS_POP
!=
isPopCms
||
isJumpToIm
(
skipTime
))
{
// 请求接口获取咨询助理的uid
// 请求接口获取咨询助理的uid
getImJavaApi
().
getConsultAssistantUidRequest
(
location
,
ffrom2
)
getImJavaApi
().
getConsultAssistantUidRequest
(
location
,
ffrom2
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
...
@@ -191,7 +195,10 @@ object IMChatUtil {
...
@@ -191,7 +195,10 @@ object IMChatUtil {
.
subscribe
{
.
subscribe
{
//请求接口获取 前置信息收集间隔时间
//请求接口获取 前置信息收集间隔时间
val
skipTime
=
it
.
value1
.
toLong
()
val
skipTime
=
it
.
value1
.
toLong
()
if
(
isJumpToIm
(
skipTime
))
{
//0:不弹信息卡,1:弹信息卡
val
isPopCms
=
it
.
value2
.
toLong
()
if
(
SHOW_EMS_POP
!=
isPopCms
||
isJumpToIm
(
skipTime
))
{
//时间内已收集过信息,直接跳转到聊天页
//时间内已收集过信息,直接跳转到聊天页
startChat
(
context
,
toUid
,
isFromQingShu
)
startChat
(
context
,
toUid
,
isFromQingShu
)
}
else
{
}
else
{
...
...
ydl-pay/src/main/java/com/yidianling/ydl_pay/common/http/utils/RxDeviceTool.java
View file @
a043a3f7
...
@@ -239,15 +239,6 @@ public class RxDeviceTool {
...
@@ -239,15 +239,6 @@ public class RxDeviceTool {
return
tm
.
getSimState
();
return
tm
.
getSimState
();
}
}
/**
* 获取ANDROID ID
*
* @param context
* @return
*/
public
static
String
getAndroidId
(
Context
context
)
{
return
Settings
.
Secure
.
getString
(
context
.
getContentResolver
(),
Settings
.
Secure
.
ANDROID_ID
);
}
/**
/**
* 获取设备型号,如MI2SC
* 获取设备型号,如MI2SC
...
...
ydl-platform/build.gradle
View file @
a043a3f7
...
@@ -138,7 +138,6 @@ dependencies {
...
@@ -138,7 +138,6 @@ dependencies {
api
rootProject
.
ext
.
dependencies
[
"flowlayout"
]
api
rootProject
.
ext
.
dependencies
[
"flowlayout"
]
api
rootProject
.
ext
.
dependencies
[
"androidanimations"
]
api
rootProject
.
ext
.
dependencies
[
"androidanimations"
]
//====================Tools====================
//====================Tools====================
api
rootProject
.
ext
.
dependencies
[
"robust"
]
api
rootProject
.
ext
.
dependencies
[
"walle"
]
api
rootProject
.
ext
.
dependencies
[
"walle"
]
api
rootProject
.
ext
.
dependencies
[
"jpush"
]
api
rootProject
.
ext
.
dependencies
[
"jpush"
]
api
rootProject
.
ext
.
dependencies
[
"jcore"
]
api
rootProject
.
ext
.
dependencies
[
"jcore"
]
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/JPushUtils.kt
View file @
a043a3f7
...
@@ -10,7 +10,11 @@ import com.ydl.ydlcommon.base.BaseApp
...
@@ -10,7 +10,11 @@ import com.ydl.ydlcommon.base.BaseApp
*/
*/
object
JPushUtils
{
object
JPushUtils
{
fun
getRegistrationID
():
String
{
fun
getRegistrationID
():
String
?
{
return
JPushInterface
.
getRegistrationID
(
BaseApp
.
getApp
());
return
if
(
DeviceTool
.
checkHasAgreeSecret
())
{
JPushInterface
.
getRegistrationID
(
BaseApp
.
getApp
());
}
else
{
null
;
}
}
}
}
}
\ No newline at end of file
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/actionutil/ActionCountUtils.kt
View file @
a043a3f7
...
@@ -288,10 +288,11 @@ class ActionCountUtils {
...
@@ -288,10 +288,11 @@ class ActionCountUtils {
baiduActionDataParams
.
appName
(
appName
)
baiduActionDataParams
.
appName
(
appName
)
try
{
try
{
@SuppressLint
(
"HardwareIds"
)
val
id
=
@SuppressLint
(
"HardwareIds"
)
val
id
=
Settings
.
Secure
.
getString
(
if
(
DeviceTool
.
checkHasAgreeSecret
()){
RxTool
.
getContext
().
contentResolver
,
Settings
.
Secure
.
getString
(
RxTool
.
getContext
().
contentResolver
,
Settings
.
Secure
.
ANDROID_ID
)
Settings
.
Secure
.
ANDROID_ID
}
else
{
)
""
}
LogUtil
.
e
(
"androidid未加密:${id}"
)
LogUtil
.
e
(
"androidid未加密:${id}"
)
}
catch
(
e
:
java
.
lang
.
Exception
)
{
}
catch
(
e
:
java
.
lang
.
Exception
)
{
...
...
ydl-utils/src/main/java/com/yidianling/common/tools/RxDeviceTool.java
View file @
a043a3f7
This diff is collapsed.
Click to expand it.
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