Commit 6ead4e39 by 万齐军

没权限走axb处理

parent 259fbaf5
...@@ -154,7 +154,7 @@ class ConfideWebServiceImpl { ...@@ -154,7 +154,7 @@ class ConfideWebServiceImpl {
callType: String? callType: String?
) { ) {
ConfideHomeDataManager.getHttp() ConfideHomeDataManager.getHttp()
.submitOrderAndPay(ConnectParamJava("" + id, "" , "")) .submitOrderAndPay(ConnectParamJava("" + id, "" + type, callType ?: ""))
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
...@@ -166,7 +166,7 @@ class ConfideWebServiceImpl { ...@@ -166,7 +166,7 @@ class ConfideWebServiceImpl {
checkPermission(id, type, activity, callType) checkPermission(id, type, activity, callType)
} else { } else {
//axb //axb
listenDial(id, type, activity,"1") listenDial(id, type, activity, callType ?: "")
} }
} }
100007 -> { 100007 -> {
...@@ -186,6 +186,7 @@ class ConfideWebServiceImpl { ...@@ -186,6 +186,7 @@ class ConfideWebServiceImpl {
ToastHelper.show(it.message ?: "连接失败") ToastHelper.show(it.message ?: "连接失败")
}) })
} }
/** /**
* 检查权限 * 检查权限
* */ * */
...@@ -195,11 +196,11 @@ class ConfideWebServiceImpl { ...@@ -195,11 +196,11 @@ class ConfideWebServiceImpl {
ConfidePermissionDialog().apply { ConfidePermissionDialog().apply {
callback = { granted -> callback = { granted ->
if (granted) { if (granted) {
listenDial(id, type, activity, callType) listenDial(id, type, activity, callType ?: "")
AliYunRichLogsHelper.getInstance() AliYunRichLogsHelper.getInstance()
.sendRichLog(AliYunLogConfig.AGORA, "请求音频权限通过") .sendRichLog(AliYunLogConfig.AGORA, "请求音频权限通过")
} else { } else {
listenDial(id, type, activity, "1") listenDial(id, 1, activity, callType ?: "")
AliYunRichLogsHelper.getInstance() AliYunRichLogsHelper.getInstance()
.sendRichLog(AliYunLogConfig.AGORA, "权限拒绝 转axb") .sendRichLog(AliYunLogConfig.AGORA, "权限拒绝 转axb")
} }
...@@ -215,7 +216,7 @@ class ConfideWebServiceImpl { ...@@ -215,7 +216,7 @@ class ConfideWebServiceImpl {
id: Int, id: Int,
type: Int, type: Int,
activity: Activity, activity: Activity,
callType: String? callType: String
) { ) {
ConfideHomeDataManager.getHttp() ConfideHomeDataManager.getHttp()
.connectionJava(ConnectParamJava("" + id, "" + type, callType)) .connectionJava(ConnectParamJava("" + id, "" + type, callType))
...@@ -253,7 +254,7 @@ class ConfideWebServiceImpl { ...@@ -253,7 +254,7 @@ class ConfideWebServiceImpl {
): Disposable { ): Disposable {
Loading.show(activity) Loading.show(activity)
return ConfideHomeDataManager.getHttp() return ConfideHomeDataManager.getHttp()
.submitOrderAndPay(ConnectParamJava("" + id, "" , "")) .submitOrderAndPay(ConnectParamJava("" + id, "" + type, callType ?: ""))
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
...@@ -263,10 +264,10 @@ class ConfideWebServiceImpl { ...@@ -263,10 +264,10 @@ class ConfideWebServiceImpl {
0 -> {//连接成功 0 -> {//连接成功
if (type == 3) { if (type == 3) {
//检查音频权限 //检查音频权限
checkPermission(id, type, activity as Activity,callType) checkPermission(id, type, activity as Activity, callType)
}else{ } else {
//axb //axb
listenDial(id, type, activity as Activity,"1"); listenDial(id, type, activity as Activity, callType ?: "")
} }
} }
100007 -> { 100007 -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment