修复测试反馈问题
This commit is contained in:
@@ -249,6 +249,7 @@ public class CallClientManager {
|
||||
Handler handler = new Handler(Looper.getMainLooper());
|
||||
|
||||
private String targetId;
|
||||
private String sessionId;
|
||||
private boolean isCallVideo = false;
|
||||
long warningTime;
|
||||
long activeTime;
|
||||
@@ -259,6 +260,10 @@ public class CallClientManager {
|
||||
|
||||
@Override
|
||||
public boolean cancel() {
|
||||
if(sessionId.equals(targetId)){
|
||||
System.err.println("接听方不计费 结束");
|
||||
return super.cancel();
|
||||
}
|
||||
long time = getTime(activeTime);
|
||||
time = time % 10;
|
||||
if (time == 0) {
|
||||
@@ -282,6 +287,7 @@ public class CallClientManager {
|
||||
}
|
||||
isCallVideo = callSession.getMediaType() == RongCallCommon.CallMediaType.VIDEO;
|
||||
activeTime = callSession.getActiveTime();
|
||||
sessionId=callSession.getCallerUserId();
|
||||
long time = getTime(activeTime);
|
||||
checkTime(time);
|
||||
String extra;
|
||||
@@ -313,6 +319,13 @@ public class CallClientManager {
|
||||
if (StringUtil.isEmpty(targetId)) {
|
||||
return;
|
||||
}
|
||||
if(sessionId.equals(targetId)){
|
||||
System.err.println("接听方不计费");
|
||||
return;
|
||||
}
|
||||
if(time==0){
|
||||
return;
|
||||
}
|
||||
time = time % 10;
|
||||
if (time == 0) {
|
||||
time = 10;
|
||||
|
||||
Reference in New Issue
Block a user