修复测试反馈问题

This commit is contained in:
2023-10-28 18:13:23 +08:00
parent 479a7b8d33
commit 0d52db8edb
25 changed files with 157 additions and 80 deletions

View File

@@ -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;