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
928a7d43
Commit
928a7d43
authored
May 20, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into d/v4.3.92
# Conflicts: # config.gradle
parents
9a236f85
568bed43
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
51 additions
and
29 deletions
+51
-29
config.gradle
config.gradle
+8
-8
ExpertSearchAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
+1
-1
consultant_item_tag.xml
m-consultant/src/main/res/layout/consultant_item_tag.xml
+1
-1
HomeBIConstants.kt
m-home/src/main/java/com/yidianling/home/constants/HomeBIConstants.kt
+1
-1
YdlHomeFragment.kt
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
+1
-0
HomeAssuageGriefItemView.kt
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeAssuageGriefItemView.kt
+4
-7
home_assuage_grief_item_view.xml
m-home/src/xlzx/res/layout/home_assuage_grief_item_view.xml
+1
-0
build.gradle
m-im/build.gradle
+3
-3
MPermission.java
m-im/src/main/java/com/yidianling/avchatkit/common/permission/MPermission.java
+5
-0
CustomUserInfoProvider.kt
m-im/src/main/java/com/yidianling/im/config/provider/CustomUserInfoProvider.kt
+5
-0
MsgViewHolderOrderAlreadyDone.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderOrderAlreadyDone.java
+9
-7
NewMultiMessageFragment.kt
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
+5
-0
NimUserInfoProvider.java
m-im/src/main/java/com/yidianling/uikit/api/wrapper/NimUserInfoProvider.java
+6
-0
im_ic_launcher.png
m-im/src/xlzx/res/mipmap-xhdpi/im_ic_launcher.png
+0
-0
UserBIConstants.kt
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
+1
-1
ErrorMessageConverter.java
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
+0
-0
No files found.
config.gradle
View file @
928a7d43
...
...
@@ -9,9 +9,9 @@ ext {
"m-consultant"
:
"0.0.60.23"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.08"
,
"m-home"
:
"0.0.23.4
5
"
,
"m-im"
:
"0.0.21.
33
"
,
"m-dynamic"
:
"0.0.7.
49
"
,
"m-home"
:
"0.0.23.4
8
"
,
"m-im"
:
"0.0.21.
42
"
,
"m-dynamic"
:
"0.0.7.
72
"
,
"m-article"
:
"0.0.0.10"
,
"m-muse"
:
"0.0.28.28"
,
...
...
@@ -33,7 +33,7 @@ ext {
//-------------- 功能组件 --------------
//mdt 组件
"ydl-tuicore"
:
"0.0.2
2
"
,
"ydl-tuicore"
:
"0.0.2
3
"
,
//第一步
"ydl-platform"
:
"0.0.40.99"
,
...
...
@@ -94,9 +94,9 @@ ext {
"m-consultant"
:
"0.0.60.23"
,
"m-fm"
:
"0.0.30.08"
,
"m-user"
:
"0.0.62.08"
,
"m-home"
:
"0.0.23.4
5
"
,
"m-im"
:
"0.0.21.
33
"
,
"m-dynamic"
:
"0.0.7.
49
"
,
"m-home"
:
"0.0.23.4
8
"
,
"m-im"
:
"0.0.21.
42
"
,
"m-dynamic"
:
"0.0.7.
72
"
,
"m-article"
:
"0.0.0.8"
,
"m-muse"
:
"0.0.28.28"
,
...
...
@@ -116,7 +116,7 @@ ext {
"m-dynamic-api"
:
"0.0.3.71"
,
//-------------- 功能组件 --------------
//mdt组件
"ydl-tuicore"
:
"0.0.2
2
"
,
"ydl-tuicore"
:
"0.0.2
3
"
,
//第一步
"ydl-platform"
:
"0.0.40.99"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/adapter/ExpertSearchAdapter.kt
View file @
928a7d43
...
...
@@ -242,7 +242,7 @@ class ExpertSearchAdapter(
view
.
tvTag
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
color_EB892C
))
}
else
{
view
.
tvTag
.
setBackgroundResource
(
R
.
drawable
.
consultant_bg_radius_line_gray_1
)
view
.
tvTag
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
platform_color_
E0E0E0
))
view
.
tvTag
.
setTextColor
(
ContextCompat
.
getColor
(
context
,
R
.
color
.
platform_color_
666666
))
}
holder
.
ll_tags
.
addView
(
view
)
}
...
...
m-consultant/src/main/res/layout/consultant_item_tag.xml
View file @
928a7d43
...
...
@@ -8,6 +8,6 @@
android:gravity=
"center"
android:layout_marginEnd=
"6dp"
android:padding=
"3dp"
android:textColor=
"@color/platform_color_
999999
"
android:textColor=
"@color/platform_color_
666666
"
android:textSize=
"10sp"
tools:text=
"恋爱情感"
/>
m-home/src/main/java/com/yidianling/home/constants/HomeBIConstants.kt
View file @
928a7d43
...
...
@@ -34,7 +34,7 @@ class HomeBIConstants {
const
val
YDL_USER_RADIO_PLAY_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_radio_play_click"
//心灵电台play按钮点击
const
val
YDL_USER_ARTICLE_MORE_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_article_more_click"
//文章阅读更多
const
val
YDL_USER_ARTICLE_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_article_click"
//文章标题图区域
const
val
YDL_USER_MAIN_PAGE_VISIT
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_visit
"
//首页浏览事件
const
val
YDL_USER_MAIN_PAGE_VISIT
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_visit"
//首页浏览事件
const
val
YDL_PRIVATE_CHAT_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"private_chat_click"
// 首页咨询分类点击私聊按钮
const
val
YDL_HOME_DWELL_TIME
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_stay_visit"
// 首页停留时长
const
val
YDL_HOME_ZHUMIANMINGXIANG
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_sleep_aid_more_click"
// 首页助眠冥想
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/fragment/YdlHomeFragment.kt
View file @
928a7d43
...
...
@@ -379,6 +379,7 @@ class YdlHomeFragment : BaseMvpFragment<IHomeContract.View, HomePresenterImpl>()
super
.
onResume
()
startTime
=
System
.
currentTimeMillis
()
if
(
userVisibleHint
)
{
ActionCountUtils
.
count
(
HomeBIConstants
.
YDL_USER_MAIN_PAGE_VISIT
)
if
(
isFromCreate
)
{
isFromCreate
=
false
mPresenter
?.
loadHomeData
()
...
...
m-home/src/xlzx/java/com/yidianling/home/ui/view/HomeAssuageGriefItemView.kt
View file @
928a7d43
package
com.yidianling.home.ui.view
import
android.content.Context
import
android.graphics.Color
import
android.graphics.drawable.Drawable
import
android.text.*
import
android.text.style.ForegroundColorSpan
import
android.text.style.ImageSpan
import
android.view.View
import
android.view.ViewGroup
import
android.widget.LinearLayout
import
android.widget.TextView
import
com.ydl.ydl_image.manager.YDLImageCacheManager
import
com.ydl.ydl_router.manager.YDLRouterManager
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.ydl.ydlcommon.router.IYDLRouterConstant
import
com.ydl.ydlcommon.utils.MoonUtil
import
com.ydl.ydlcommon.utils.Utils
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.home.R
import
com.yidianling.home.event.IHomeBaseEvent
import
com.yidianling.home.model.bean.HomeAskBean
...
...
@@ -77,7 +71,10 @@ class HomeAssuageGriefItemView(
homeModuleAssuageGriefViewBottomLine
.
visibility
=
View
.
VISIBLE
homeModuleAssuageGriefViewBottomBtn
.
visibility
=
View
.
GONE
}
ll_topic_detail
.
setOnClickListener
{
//跳转话题详情
homeEvent
?.
jumpToTopicDetail
(
bean
.
topicId
.
toString
())
}
/**
* 点赞
...
...
m-home/src/xlzx/res/layout/home_assuage_grief_item_view.xml
View file @
928a7d43
...
...
@@ -130,6 +130,7 @@
android:layout_marginTop=
"@dimen/platform_dp_12"
android:gravity=
"center_vertical"
>
<LinearLayout
android:id=
"@+id/ll_topic_detail"
android:layout_width=
"wrap_content"
android:layout_height=
"28dp"
android:orientation=
"horizontal"
...
...
m-im/build.gradle
View file @
928a7d43
...
...
@@ -84,10 +84,10 @@ dependencies {
androidTestImplementation
'androidx.test.espresso:espresso-core:3.1.0'
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
kapt
'com.alibaba:arouter-compiler:1.2.2'
implementation
'com.ydl:nim-base:1.1.0.
3
'
implementation
'com.ydl:nim-base:1.1.0.
4
'
// implementation 'com.netease.nimlib:basesdk:8.5.0'
implementation
'com.netease.nimlib:avchat:
8.7.2
'
implementation
'com.netease.nimlib:nrtc:
8.7.2
'
implementation
'com.netease.nimlib:avchat:
9.1.1
'
implementation
'com.netease.nimlib:nrtc:
9.1.1
'
api
rootProject
.
ext
.
dependencies
[
"ydl-user-router"
]
implementation
rootProject
.
ext
.
dependencies
[
"BaseRecyclerViewAdapterHelper"
]
...
...
m-im/src/main/java/com/yidianling/avchatkit/common/permission/MPermission.java
View file @
928a7d43
...
...
@@ -88,6 +88,8 @@ public class MPermission extends BaseMPermission {
}
private
static
void
dispatchResult
(
Object
obj
,
int
requestCode
,
@NonNull
String
[]
permissions
,
@NonNull
int
[]
grantResults
)
{
//处理权限异常
try
{
List
<
String
>
deniedPermissions
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
grantResults
.
length
;
i
++)
{
if
(
grantResults
[
i
]
!=
PackageManager
.
PERMISSION_GRANTED
)
{
...
...
@@ -104,6 +106,9 @@ public class MPermission extends BaseMPermission {
}
else
{
doExecuteSuccess
(
obj
,
requestCode
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
/**
...
...
m-im/src/main/java/com/yidianling/im/config/provider/CustomUserInfoProvider.kt
View file @
928a7d43
...
...
@@ -2,6 +2,7 @@ package com.yidianling.im.config.provider
import
android.content.Context
import
com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
import
com.netease.nimlib.sdk.msg.model.IMMessage
import
com.netease.nimlib.sdk.uinfo.model.UserInfo
import
com.ydl.ydlcommon.utils.UserInfoCache
import
com.yidianling.uikit.api.wrapper.NimUserInfoProvider
...
...
@@ -31,4 +32,8 @@ class CustomUserInfoProvider(context:Context) : NimUserInfoProvider(context) {
override
fun
getDisplayNameForMessageNotifier
(
account
:
String
?,
sessionId
:
String
?,
sessionType
:
SessionTypeEnum
?):
String
{
return
UserInfoCache
.
getInstance
().
getUser
(
account
).
nickName
}
override
fun
getDisplayTitleForMessageNotifier
(
p0
:
IMMessage
?):
String
{
return
""
}
}
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderOrderAlreadyDone.java
View file @
928a7d43
...
...
@@ -17,11 +17,9 @@ import com.netease.nimlib.sdk.msg.model.IMMessage;
import
com.ydl.webview.H5Params
;
import
com.ydl.webview.NewH5Activity
;
import
com.ydl.ydlcommon.data.http.RxUtils
;
import
com.yidianling.common.tools.LogUtil
;
import
com.yidianling.common.tools.ToastUtil
;
import
com.yidianling.im.R
;
import
com.yidianling.im.config.constants.ImConstants
;
import
com.yidianling.im.helper.IMChatUtil
;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.session.extension.CustomAttachmentConfirmOrder
;
import
com.yidianling.im.session.extension.CustomAttachmentOrderAlreadyDone
;
...
...
@@ -51,7 +49,6 @@ public class MsgViewHolderOrderAlreadyDone extends MsgViewHolderBase {
public
String
orderId
;
/***0 未确认 1已确认*/
public
int
flag
;
public
boolean
isSureed
=
false
;
//是否已确认
public
MsgViewHolderOrderAlreadyDone
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
...
...
@@ -129,8 +126,14 @@ public class MsgViewHolderOrderAlreadyDone extends MsgViewHolderBase {
.
subscribe
(
it
->
{
//确认完成,按钮置灰,更新本地消息
updateLocalMsg
();
},
throwable
->
ToastUtil
.
toastShort
(
throwable
.
getMessage
())
},
throwable
->{
if
(
throwable
.
getMessage
().
contains
(
"非已服务待确认"
)){
updateLocalMsg
();
onItemClick
();
}
else
{
ToastUtil
.
toastShort
(
throwable
.
getMessage
());
}
}
);
});
...
...
@@ -152,19 +155,18 @@ public class MsgViewHolderOrderAlreadyDone extends MsgViewHolderBase {
updateSureView
(
"已确认"
);
}
}
else
{
isSureed
=
false
;
tv_submit
.
setText
(
"确认"
);
tv_submit
.
setEnabled
(
true
);
tv_submit
.
setBackground
(
ContextCompat
.
getDrawable
(
context
,
R
.
drawable
.
bg_radius_green_linear_12
));
}
}
else
{
isSureed
=
false
;
tv_submit
.
setText
(
"确认"
);
tv_submit
.
setEnabled
(
true
);
tv_submit
.
setBackground
(
ContextCompat
.
getDrawable
(
context
,
R
.
drawable
.
bg_radius_green_linear_12
));
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
hideItemBg
();
...
...
m-im/src/main/java/com/yidianling/im/ui/page/NewMultiMessageFragment.kt
View file @
928a7d43
...
...
@@ -86,10 +86,15 @@ class NewMultiMessageFragment : BaseFragment() {
override
fun
onResume
()
{
super
.
onResume
()
getMsgData
()
try
{
NIMClient
.
getService
(
MsgService
::
class
.
java
).
setChattingAccount
(
MsgService
.
MSG_CHATTING_ACCOUNT_NONE
,
SessionTypeEnum
.
None
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
}
override
fun
onPause
()
{
...
...
m-im/src/main/java/com/yidianling/uikit/api/wrapper/NimUserInfoProvider.java
View file @
928a7d43
...
...
@@ -7,6 +7,7 @@ import android.graphics.drawable.Drawable;
import
android.text.TextUtils
;
import
com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
;
import
com.netease.nimlib.sdk.msg.model.IMMessage
;
import
com.netease.nimlib.sdk.team.model.Team
;
import
com.netease.nimlib.sdk.uinfo.UserInfoProvider
;
import
com.netease.nimlib.sdk.uinfo.model.UserInfo
;
...
...
@@ -62,6 +63,11 @@ public class NimUserInfoProvider implements UserInfoProvider {
}
@Override
public
String
getDisplayTitleForMessageNotifier
(
IMMessage
imMessage
)
{
return
null
;
}
@Override
public
String
getDisplayNameForMessageNotifier
(
String
account
,
String
sessionId
,
SessionTypeEnum
sessionType
)
{
String
nick
=
null
;
if
(
sessionType
==
SessionTypeEnum
.
P2P
)
{
...
...
m-im/src/xlzx/res/mipmap-xhdpi/im_ic_launcher.png
View replaced file @
9a236f85
View file @
928a7d43
21.3 KB
|
W:
|
H:
3.48 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
View file @
928a7d43
...
...
@@ -107,7 +107,7 @@ class UserMyPageEvent{
const
val
YDL_USER_RADIO_PLAY_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_radio_play_click"
//心灵电台play按钮点击
const
val
YDL_USER_ARTICLE_MORE_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_article_more_click"
//文章阅读更多
const
val
YDL_USER_ARTICLE_CLICK
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_article_click"
//文章标题图区域
const
val
YDL_USER_MAIN_PAGE_VISIT
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_visit
"
//首页浏览事件
const
val
YDL_USER_MAIN_PAGE_VISIT
:
String
=
YDL_USER_MAIN_PAGE
+
"ydl_user_main_page_visit"
//首页浏览事件
}
}
...
...
ydl-tuicore/src/main/java/com/tencent/qcloud/tuicore/util/ErrorMessageConverter.java
View file @
928a7d43
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