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
6ead4e39
Commit
6ead4e39
authored
Jul 05, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没权限走axb处理
parent
259fbaf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ConfideWebServiceImpl.kt
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
+10
-9
No files found.
m-confide/src/main/java/com/ydl/confide/home/modular/service/ConfideWebServiceImpl.kt
View file @
6ead4e39
...
...
@@ -154,7 +154,7 @@ class ConfideWebServiceImpl {
callType
:
String
?
)
{
ConfideHomeDataManager
.
getHttp
()
.
submitOrderAndPay
(
ConnectParamJava
(
""
+
id
,
""
,
""
))
.
submitOrderAndPay
(
ConnectParamJava
(
""
+
id
,
""
+
type
,
callType
?:
""
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
...
...
@@ -166,7 +166,7 @@ class ConfideWebServiceImpl {
checkPermission
(
id
,
type
,
activity
,
callType
)
}
else
{
//axb
listenDial
(
id
,
type
,
activity
,
"1
"
)
listenDial
(
id
,
type
,
activity
,
callType
?:
"
"
)
}
}
100007
->
{
...
...
@@ -186,6 +186,7 @@ class ConfideWebServiceImpl {
ToastHelper
.
show
(
it
.
message
?:
"连接失败"
)
})
}
/**
* 检查权限
* */
...
...
@@ -195,11 +196,11 @@ class ConfideWebServiceImpl {
ConfidePermissionDialog
().
apply
{
callback
=
{
granted
->
if
(
granted
)
{
listenDial
(
id
,
type
,
activity
,
callType
)
listenDial
(
id
,
type
,
activity
,
callType
?:
""
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"请求音频权限通过"
)
}
else
{
listenDial
(
id
,
type
,
activity
,
"1
"
)
listenDial
(
id
,
1
,
activity
,
callType
?:
"
"
)
AliYunRichLogsHelper
.
getInstance
()
.
sendRichLog
(
AliYunLogConfig
.
AGORA
,
"权限拒绝 转axb"
)
}
...
...
@@ -215,7 +216,7 @@ class ConfideWebServiceImpl {
id
:
Int
,
type
:
Int
,
activity
:
Activity
,
callType
:
String
?
callType
:
String
)
{
ConfideHomeDataManager
.
getHttp
()
.
connectionJava
(
ConnectParamJava
(
""
+
id
,
""
+
type
,
callType
))
...
...
@@ -253,7 +254,7 @@ class ConfideWebServiceImpl {
):
Disposable
{
Loading
.
show
(
activity
)
return
ConfideHomeDataManager
.
getHttp
()
.
submitOrderAndPay
(
ConnectParamJava
(
""
+
id
,
""
,
""
))
.
submitOrderAndPay
(
ConnectParamJava
(
""
+
id
,
""
+
type
,
callType
?:
""
))
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
({
...
...
@@ -263,10 +264,10 @@ class ConfideWebServiceImpl {
0
->
{
//连接成功
if
(
type
==
3
)
{
//检查音频权限
checkPermission
(
id
,
type
,
activity
as
Activity
,
callType
)
}
else
{
checkPermission
(
id
,
type
,
activity
as
Activity
,
callType
)
}
else
{
//axb
listenDial
(
id
,
type
,
activity
as
Activity
,
"1"
);
listenDial
(
id
,
type
,
activity
as
Activity
,
callType
?:
""
)
}
}
100007
->
{
...
...
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