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
181f1c5d
Commit
181f1c5d
authored
Feb 24, 2020
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代运营判断逻辑修改
parent
25bf4460
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
9 deletions
+16
-9
MainActivity.kt
app/src/main/java/com/ydl/component/MainActivity.kt
+2
-1
config.gradle
config.gradle
+1
-1
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+2
-2
ServiceApi.kt
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceApi.kt
+2
-1
ServiceImpl.kt
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceImpl.kt
+3
-2
ApkUpdateDialog.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ApkUpdateDialog.kt
+6
-2
No files found.
app/src/main/java/com/ydl/component/MainActivity.kt
View file @
181f1c5d
...
@@ -232,7 +232,8 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
...
@@ -232,7 +232,8 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
MobclickAgent
.
onResume
(
this
)
MobclickAgent
.
onResume
(
this
)
// ModularServiceManager.provide(IConsultantService::class.java)
// ModularServiceManager.provide(IConsultantService::class.java)
// .showConsultAssistantDialog(this)
// .
// (this)
}
}
override
fun
onPause
()
{
override
fun
onPause
()
{
...
...
config.gradle
View file @
181f1c5d
ext
{
ext
{
kotlin_version
=
"1.3.21"
kotlin_version
=
"1.3.21"
dev_mode
=
fals
e
dev_mode
=
tru
e
ydl_app
=
[
ydl_app
=
[
appName
:
"心理咨询壹点灵"
,
appName
:
"心理咨询壹点灵"
,
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
181f1c5d
...
@@ -366,8 +366,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -366,8 +366,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
}
},
throwable
->
{
},
throwable
->
{
});
});
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
&&
ActionHandlerStorage
.
getL
(
sessionId
).
getUserType
()
==
3
)
{
if
(
ActionHandlerStorage
.
getL
(
sessionId
)
!=
null
&&
ActionHandlerStorage
.
getL
(
sessionId
).
getUserType
()
==
1
&&
ModularServiceManager
.
INSTANCE
.
provide
(
IUserService
.
class
).
getUserInfo
().
getUser_type
()
==
3
)
{
ServiceImpl
.
Companion
.
getInstance
().
getSourceDoctor
(
ModularServiceManager
.
INSTANCE
.
provide
(
IUserService
.
class
).
getUserInfo
().
getUid
(),
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
toUid
)
ServiceImpl
.
Companion
.
getInstance
().
getSourceDoctor
(
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
().
toUid
,
ModularServiceManager
.
INSTANCE
.
provide
(
IUserService
.
class
).
getUserInfo
().
getUid
()
)
.
subscribeOn
(
Schedulers
.
io
())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
(
res
->
{
.
subscribe
(
res
->
{
...
...
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceApi.kt
View file @
181f1c5d
...
@@ -73,6 +73,6 @@ interface ServiceApi {
...
@@ -73,6 +73,6 @@ interface ServiceApi {
@GET
(
"chat/get-source-doctor"
)
@GET
(
"chat/get-source-doctor"
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
@Headers
(
YDL_DOMAIN
+
YDL_DOMAIN_JAVA
)
//注意:这个接口返回的还有很多字段,但是暂时不需要,就先取这两个字段
//注意:这个接口返回的还有很多字段,但是暂时不需要,就先取这两个字段
fun
getSourceDoctor
(
@Query
(
"scene"
)
scene
:
Int
,
@Query
(
"u
id"
)
u
id
:
String
,
@Query
(
"assistantUid"
)
assistantUid
:
String
):
Observable
<
BaseAPIResponse
<
SourceDoctorInfoBean
>>
fun
getSourceDoctor
(
@Query
(
"scene"
)
scene
:
Int
,
@Query
(
"u
serUid"
)
userU
id
:
String
,
@Query
(
"assistantUid"
)
assistantUid
:
String
):
Observable
<
BaseAPIResponse
<
SourceDoctorInfoBean
>>
}
}
\ No newline at end of file
m-im/src/main/java/com/yidianling/uikit/custom/http/ServiceImpl.kt
View file @
181f1c5d
...
@@ -99,8 +99,8 @@ class ServiceImpl private constructor() {
...
@@ -99,8 +99,8 @@ class ServiceImpl private constructor() {
/**
/**
* 获取代运营关联的专家的信息
* 获取代运营关联的专家的信息
*/
*/
fun
getSourceDoctor
(
uid
:
String
,
assistantUid
:
String
):
Observable
<
BaseAPIResponse
<
SourceDoctorInfoBean
>>
{
fun
getSourceDoctor
(
u
serU
id
:
String
,
assistantUid
:
String
):
Observable
<
BaseAPIResponse
<
SourceDoctorInfoBean
>>
{
return
YDLHttpUtils
.
obtainApi
(
ServiceApi
::
class
.
java
).
getSourceDoctor
(
1
,
uid
,
assistantUid
)
return
YDLHttpUtils
.
obtainApi
(
ServiceApi
::
class
.
java
).
getSourceDoctor
(
1
,
u
serU
id
,
assistantUid
)
}
}
}
}
\ No newline at end of file
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/ApkUpdateDialog.kt
View file @
181f1c5d
package
com.ydl.ydlcommon.utils
package
com.ydl.ydlcommon.utils
import
android.annotation.SuppressLint
import
android.app.Activity
import
android.app.Activity
import
android.app.Dialog
import
android.app.Dialog
import
android.os.Bundle
import
android.os.Bundle
...
@@ -36,22 +37,24 @@ class ApkUpdateDialog : Dialog{
...
@@ -36,22 +37,24 @@ class ApkUpdateDialog : Dialog{
this
.
activity
=
activity
this
.
activity
=
activity
}
}
@SuppressLint
(
"SetTextI18n"
)
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
override
fun
onCreate
(
savedInstanceState
:
Bundle
?)
{
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
platform_dialog_update_layout
)
setContentView
(
R
.
layout
.
platform_dialog_update_layout
)
tv_update_content
.
text
=
updateData
?.
title
tv_update_content
.
text
=
updateData
?.
title
tv_update_content
.
setMovementMethod
(
ScrollingMovementMethod
.
getInstance
()
);
tv_update_content
.
movementMethod
=
ScrollingMovementMethod
.
getInstance
(
);
text_version
.
text
=
"v${updateData?.ver}"
text_version
.
text
=
"v${updateData?.ver}"
text_desc
.
text
=
updateData
?.
content
text_desc
.
text
=
updateData
?.
content
text_desc
.
setMovementMethod
(
ScrollingMovementMethod
.
getInstance
()
);
text_desc
.
movementMethod
=
ScrollingMovementMethod
.
getInstance
(
);
v_downpress
.
setSize
(
28
,
14
,
6
,
9
,
4
)
v_downpress
.
setSize
(
28
,
14
,
6
,
9
,
4
)
v_downpress
.
setTextSize
(
10
)
v_downpress
.
setTextSize
(
10
)
// v_downpress.setProgress(0)
// v_downpress.setProgress(0)
listener
=
object
:
ApkInstallTool
.
UpdateProgressListener
{
listener
=
object
:
ApkInstallTool
.
UpdateProgressListener
{
@SuppressLint
(
"CheckResult"
)
override
fun
startLoad
()
{
override
fun
startLoad
()
{
Observable
.
just
(
1
)
Observable
.
just
(
1
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
@@ -66,6 +69,7 @@ class ApkUpdateDialog : Dialog{
...
@@ -66,6 +69,7 @@ class ApkUpdateDialog : Dialog{
},{})
},{})
}
}
@SuppressLint
(
"CheckResult"
)
override
fun
progress
(
progress
:
Int
)
{
override
fun
progress
(
progress
:
Int
)
{
Observable
.
just
(
1
)
Observable
.
just
(
1
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
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