|
@@ -565,7 +565,9 @@ public class SoundCompareHandler implements WebSocketEventHandler {
|
|
|
WebSocketInfo webSocketInfo = new WebSocketInfo();
|
|
|
webSocketInfo.setHeader(new WebSocketInfo.Head(command));
|
|
|
Map<String, Object> result = new HashMap<>(5);
|
|
|
+ //打击乐只看节奏分
|
|
|
BigDecimal score = cadence;
|
|
|
+ //非打击乐总分为平均分
|
|
|
if(Objects.isNull(userSoundInfoMap.get(phone).getSubjectId())||userSoundInfoMap.get(phone).getSubjectId()!=23){
|
|
|
score = intonation.add(cadence).add(integrity).divide(new BigDecimal(3), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN).setScale(0, BigDecimal.ROUND_UP);
|
|
|
}
|