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
56a15b4a
Commit
56a15b4a
authored
Feb 04, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.倾诉模块,登录接入优先一键登录功能
parent
859a19a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ConfideHomeEventImpl.kt
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
+2
-3
PhoneCallIn.kt
m-confide/src/main/java/com/ydl/confide/router/PhoneCallIn.kt
+12
-0
No files found.
m-confide/src/main/java/com/ydl/confide/home/event/ConfideHomeEventImpl.kt
View file @
56a15b4a
...
...
@@ -258,9 +258,8 @@ class ConfideHomeEventImpl(context: Context, var confideHomeView: IConfideHomeCo
* 私聊
*/
override
fun
toChatForMsg
(
doctorId
:
String
?)
{
if
(!
PhoneCallIn
.
isLogin
()
&&
null
!=
mContext
&&
mContext
is
Activity
)
{
mContext
!!
.
startActivity
(
PhoneCallIn
.
loginWayIntent
(
mContext
as
Activity
))
if
(
null
!=
mContext
&&
mContext
is
Activity
){
PhoneCallIn
.
loginByOneKeyLogin
(
mContext
as
Activity
,
true
)
return
}
if
(
mContext
is
AppCompatActivity
&&
!
TextUtils
.
isEmpty
(
doctorId
))
{
...
...
m-confide/src/main/java/com/ydl/confide/router/PhoneCallIn.kt
View file @
56a15b4a
package
com.ydl.confide.router
import
android.app.Activity
import
android.content.Context
import
android.content.Intent
import
android.support.v7.app.AppCompatActivity
import
com.ydl.ydlcommon.modular.ModularServiceManager
...
...
@@ -42,4 +43,14 @@ object PhoneCallIn {
fun
startChat
(
context
:
AppCompatActivity
,
toUid
:
String
,
flag
:
Int
,
canTalk
:
Int
)
{
getImService
().
startChat
(
context
,
toUid
,
flag
,
canTalk
)
}
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
{
return
getUserService
().
loginByOneKeyLogin
(
context
,
isOpenDialog
)
}
}
\ No newline at end of file
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