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
3bcdb518
Commit
3bcdb518
authored
Dec 23, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级im版本号
parent
bafecd11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
58 deletions
+59
-58
DemoGlobalConfig.java
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
+1
-1
config.gradle
config.gradle
+1
-1
MsgListAdapter.java
m-im/src/main/java/com/yidianling/im/ui/adapter/MsgListAdapter.java
+57
-56
No files found.
app/src/main/java/com/ydl/component/base/DemoGlobalConfig.java
View file @
3bcdb518
...
@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
...
@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
String
APP_DOMAIN
=
"https://api.github.com/"
;
String
APP_DOMAIN
=
"https://api.github.com/"
;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_TEST;
// public static String appEnv = YDLConstants.ENV_TEST;
public
static
String
appEnv
=
YDLConstants
.
ENV_
TEST
;
public
static
String
appEnv
=
YDLConstants
.
ENV_
PROD
;
@Override
@Override
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
public
void
injectAppLifecycle
(
@NotNull
Context
context
,
@NotNull
List
<
IAppLifecycles
>
lifecycles
)
{
...
...
config.gradle
View file @
3bcdb518
...
@@ -52,7 +52,7 @@ ext {
...
@@ -52,7 +52,7 @@ ext {
"m-muse"
:
"0.0.20.4"
,
"m-muse"
:
"0.0.20.4"
,
"m-tests"
:
"0.0.15.3"
,
"m-tests"
:
"0.0.15.3"
,
"m-course"
:
"0.0.34.4"
,
"m-course"
:
"0.0.34.4"
,
"m-im"
:
"0.0.3.
7
"
,
"m-im"
:
"0.0.3.
8
"
,
"m-dynamic"
:
"0.0.1.5"
,
"m-dynamic"
:
"0.0.1.5"
,
...
...
m-im/src/main/java/com/yidianling/im/ui/adapter/MsgListAdapter.java
View file @
3bcdb518
...
@@ -125,63 +125,64 @@ public class MsgListAdapter extends CommonAdapter<MsgData> {
...
@@ -125,63 +125,64 @@ public class MsgListAdapter extends CommonAdapter<MsgData> {
ToastHelper
.
Companion
.
show
(
msg
);
ToastHelper
.
Companion
.
show
(
msg
);
}
}
});
});
return
;
//如果是动态消息则到此结束,其它消息类型走下面流程
//如果是动态消息则到此结束,其它消息类型走下面流程
}
}
else
{
((
BaseActivity
)
context
).
showProgressDialog
(
"正在中转"
);
Disposable
di
=
httpHelper
.
getMsgDetail
(
new
MsgDetailParam
(
mDataList
.
get
(
position
).
id
))
Disposable
di
=
httpHelper
.
getMsgDetail
(
new
MsgDetailParam
(
mDataList
.
get
(
position
).
id
))
.
compose
(
RxUtils
.
applySchedulers
(
lifecycleable
))
.
compose
(
RxUtils
.
applySchedulers
(
lifecycleable
))
.
compose
(
RxUtils
.
resultData
())
.
compose
(
RxUtils
.
resultData
())
.
subscribe
(
msgDetail
->
{
.
subscribe
(
msgDetail
->
{
mDataList
.
get
(
position
).
is_read
=
2
;
mDataList
.
get
(
position
).
is_read
=
2
;
EventBus
.
getDefault
().
post
(
new
UpdateTabUnreadNumEvent
());
((
BaseActivity
)
context
).
dismissProgressDialog
();
switch
(
msgDetail
.
type
)
{
EventBus
.
getDefault
().
post
(
new
UpdateTabUnreadNumEvent
());
case
1
:
switch
(
msgDetail
.
type
)
{
case
2
:
case
1
:
case
501
:
case
2
:
case
502
:
case
501
:
case
506
:
case
502
:
//预约详情
case
506
:
H5Params
h5Params
=
new
H5Params
(
ImIn
.
INSTANCE
.
getReserveHost
()
+
msgDetail
.
relation_id1
,
null
);
//预约详情
NewH5Activity
.
start
(
context
,
h5Params
);
H5Params
h5Params
=
new
H5Params
(
ImIn
.
INSTANCE
.
getReserveHost
()
+
msgDetail
.
relation_id1
,
null
);
break
;
NewH5Activity
.
start
(
context
,
h5Params
);
case
504
:
break
;
case
505
:
case
504
:
//微问诊列表
case
505
:
H5Params
h5Paramswe
=
new
H5Params
(
ImConstants
.
Companion
.
getMY_CHAT
(),
null
);
//微问诊列表
NewH5Activity
.
start
(
context
,
h5Paramswe
);
H5Params
h5Paramswe
=
new
H5Params
(
ImConstants
.
Companion
.
getMY_CHAT
(),
null
);
break
;
NewH5Activity
.
start
(
context
,
h5Paramswe
);
case
507
:
break
;
case
508
:
case
507
:
case
509
:
case
508
:
//预约评价 微问诊评价 倾诉评价
case
509
:
//预约评价 微问诊评价 倾诉评价
H5Params
h5Paramspi
=
new
H5Params
(
ImConstants
.
Companion
.
getYYPJ
()
+
msgDetail
.
relation_id1
,
null
);
NewH5Activity
.
start
(
context
,
h5Paramspi
);
H5Params
h5Paramspi
=
new
H5Params
(
ImConstants
.
Companion
.
getYYPJ
()
+
msgDetail
.
relation_id1
,
null
);
break
;
NewH5Activity
.
start
(
context
,
h5Paramspi
);
case
510
:
break
;
//免费体验详情
case
510
:
H5Params
h5Paramsmi
=
new
H5Params
(
ImConstants
.
Companion
.
getFREEDTAIL
()
+
msgDetail
.
relation_id1
,
null
);
//免费体验详情
NewH5Activity
.
start
(
context
,
h5Paramsmi
);
H5Params
h5Paramsmi
=
new
H5Params
(
ImConstants
.
Companion
.
getFREEDTAIL
()
+
msgDetail
.
relation_id1
,
null
);
break
;
NewH5Activity
.
start
(
context
,
h5Paramsmi
);
case
503
:
break
;
case
1001
:
case
503
:
case
1002
:
case
1001
:
case
1004
:
//老板心事心事详情
case
1002
:
break
;
case
1004
:
//老板心事心事详情
break
;
case
1003
:
case
1003
:
// ImIn.INSTANCE.MyRedPackActivity(context,null);
// ImIn.INSTANCE.MyRedPackActivity(context,null);
ImIn
.
INSTANCE
.
myRedPockIntent
(
context
);
ImIn
.
INSTANCE
.
myRedPockIntent
(
context
);
break
;
break
;
}
}
},
new
ThrowableConsumer
()
{
},
new
ThrowableConsumer
()
{
@Override
@Override
public
void
accept
(
@NotNull
String
msg
)
{
public
void
accept
(
@NotNull
String
msg
)
{
((
BaseActivity
)
context
).
dismissProgressDialog
();
((
BaseActivity
)
context
).
dismissProgressDialog
();
ToastHelper
.
Companion
.
show
(
msg
);
ToastHelper
.
Companion
.
show
(
msg
);
}
}
});
});
}
}
}
});
});
return
convertView
;
return
convertView
;
...
...
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