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
93164fc2
Commit
93164fc2
authored
Jul 01, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 线上接口问题修复
parent
13999763
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
26 deletions
+29
-26
config.gradle
config.gradle
+1
-1
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+9
-4
MineFragment.kt
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
+19
-21
No files found.
config.gradle
View file @
93164fc2
...
...
@@ -281,7 +281,7 @@ ext {
//flutter功能组件升级===>发布ydl-flutter组件===>引用flutter相关的业务模块
"ydl-flutter-base"
:
"com.ydl:ydl-flutter-base:${ydlCompileVersion["
ydl
-
flutter
-
base
"]}"
,
//组件化项目中的flutter base模块
"ydl-flutter"
:
"com.ydl:ydl-flutter:0.0.
46
@aar"
,
//flutter aar
"ydl-flutter"
:
"com.ydl:ydl-flutter:0.0.
51
@aar"
,
//flutter aar
// "ydl-flutter-sp" : "com.ydl:ydl-flutter-sp:0.0.2@aar", //flutter 缓存 aar
//基础组件 <<--- 先发这个,发完改这里的版本号
...
...
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
93164fc2
...
...
@@ -708,9 +708,13 @@ class YDLavManager {
session
:
String
?,
line
:
String
)
{
AudioApiRequestUtil
.
callEventSave
(
session
,
line
,
status
,
"用户端:${res}"
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
()
//保证session有值
session
?.
let
{
sessionLet
->
AudioApiRequestUtil
.
callEventSave
(
sessionLet
,
line
,
status
,
"用户端:${res}"
)
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
()
}
}
}
\ No newline at end of file
m-user/src/main/java/com/yidianling/user/mine/MineFragment.kt
View file @
93164fc2
...
...
@@ -43,7 +43,6 @@ import com.yidianling.user.api.event.RefreshRecentContactListEvent
import
com.yidianling.user.api.service.IAppService
import
com.yidianling.user.constants.UserBIConstants.UserMyPageEvent
import
com.yidianling.user.mine.bean.CouponNumBean
import
com.yidianling.user.mine.data.AppDataManager
import
com.yidianling.user.mine.data.AppDataManager.getHttp
import
com.yidianling.user.mine.data.AppDataManager.getLocal
import
com.yidianling.user.mine.http.MineHttpImpl
...
...
@@ -249,32 +248,31 @@ class MineFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener, View.
getLocal
().
setConfide
(
false
)
getLocal
().
setConsult
(
false
)
val
userInfo
=
getUserInfo
()
?:
return
if
(
userInfo
.
uid
!=
null
)
{
getConfideOrder
(
userInfo
.
uid
!!
)
}
val
userInfo
=
getUserInfo
()
//获取用户信息
MineHttpImpl
.
getInstance
().
getNewCoupon
(
BaseCommand
())
.
compose
(
netCheck
())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
response
:
BaseResponse
<
CouponNumBean
>
->
if
(
response
.
data
!=
null
)
{
if
(
response
.
data
?.
count
?:
0
>
0
)
{
view_new_coupon
.
visibility
=
View
.
VISIBLE
getLocal
().
setCoupon
(
true
)
userInfo
?.
uid
?.
let
{
uid
->
getConfideOrder
(
uid
)
//获取用户信息
MineHttpImpl
.
getInstance
().
getNewCoupon
(
BaseCommand
())
.
compose
(
netCheck
())
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
response
:
BaseResponse
<
CouponNumBean
>
->
if
(
response
.
data
!=
null
)
{
if
(
response
.
data
?.
count
?:
0
>
0
)
{
view_new_coupon
.
visibility
=
View
.
VISIBLE
getLocal
().
setCoupon
(
true
)
}
else
{
view_new_coupon
.
visibility
=
View
.
GONE
getLocal
().
setCoupon
(
false
)
}
}
else
{
view_new_coupon
.
visibility
=
View
.
GONE
getLocal
().
setCoupon
(
false
)
}
}
else
{
}
)
{
throwable
:
Throwable
?
->
getLocal
().
setCoupon
(
false
)
}
})
{
throwable
:
Throwable
?
->
getLocal
().
setCoupon
(
false
)
}
}
}
/**
...
...
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