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
402ac5e5
Commit
402ac5e5
authored
Feb 03, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fm模块,登录接入优先一键登录功能
parent
05ac3e79
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
config.gradle
config.gradle
+1
-1
FMDetailActivity.java
m-fm/src/main/java/com/yidianling/fm/FMDetailActivity.java
+3
-5
FMIn.kt
m-fm/src/main/java/com/yidianling/fm/router/FMIn.kt
+10
-1
No files found.
config.gradle
View file @
402ac5e5
...
...
@@ -7,7 +7,7 @@ ext {
//第三步 若干
"m-confide"
:
"0.0.48.92"
,
"m-consultant"
:
"0.0.59.65"
,
"m-fm"
:
"0.0.30.0
0
"
,
"m-fm"
:
"0.0.30.0
1
"
,
"m-user"
:
"0.0.60.91"
,
"m-home"
:
"0.0.22.52"
,
"m-im"
:
"0.0.18.34"
,
...
...
m-fm/src/main/java/com/yidianling/fm/FMDetailActivity.java
View file @
402ac5e5
...
...
@@ -462,8 +462,7 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
}
}
else
if
(
i
==
R
.
id
.
iv_love
)
{
if
(!
FMIn
.
INSTANCE
.
isLogin
())
{
startActivity
(
FMIn
.
INSTANCE
.
loginWayIntent
(
this
));
if
(!
FMIn
.
INSTANCE
.
loginByOneKeyLogin
(
this
,
true
)){
return
;
}
collect
();
...
...
@@ -491,10 +490,9 @@ public class FMDetailActivity extends BaseActivity implements View.OnClickListen
YDLShareDialog
dialog
=
YDLShareDialog
.
Companion
.
style1
(
this
,
fmDetail
.
getTitle
(),
fmDetail
.
getShare_url
(),
""
,
fmDetail
.
getImage_url
());
dialog
.
setCallBack
(
type
->
{
if
(
1
==
type
)
{
if
(!
FMIn
.
INSTANCE
.
isLogin
())
{
if
(!
FMIn
.
INSTANCE
.
loginByOneKeyLogin
(
this
,
true
))
{
isToTrend
=
true
;
startActivity
(
FMIn
.
INSTANCE
.
loginWayIntent
(
this
));
}
else
{
}
else
{
//分享到心事动态
toTrend
();
}
...
...
m-fm/src/main/java/com/yidianling/fm/router/FMIn.kt
View file @
402ac5e5
package
com.yidianling.fm.router
import
android.app.Activity
import
android.content.Context
import
android.content.Intent
import
com.ydl.ydlcommon.modular.ModularServiceManager
import
com.yidianling.dynamic.api.IDynamicService
...
...
@@ -39,6 +40,13 @@ object FMIn {
fun
publisFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
)
:
Intent
?{
return
getDynamicService
()
?.
publishFmToTrend
(
activity
,
url
,
cover
,
title
)
}
/**
* 调用优先使用一键登录,并返回调用时的登录状态,
* @param isOpenDialog true:一键登录使用弹窗展示 false:一键登录使用全屏模式
* @return true:已登录,不触发登录跳转,false:未登录,优先一键登录
* */
fun
loginByOneKeyLogin
(
context
:
Context
,
isOpenDialog
:
Boolean
)
:
Boolean
{
return
ModularServiceManager
.
provide
(
IUserService
::
class
.
java
).
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