卸载称号
parent
b879921365
commit
e1bcb8e739
|
@ -476,7 +476,12 @@ public class PlayerLogic {
|
|||
user.getPlayerInfoManager().setHead(decorationId);
|
||||
break;
|
||||
case 2:
|
||||
Long time2 = user.getPlayerInfoManager().getUserTitleValidTime().get(decorationId);
|
||||
Long time2;
|
||||
if (decorationId == 0){
|
||||
time2 = 0L;
|
||||
}else {
|
||||
time2 = user.getPlayerInfoManager().getUserTitleValidTime().get(decorationId);
|
||||
}
|
||||
if (time2 == null){
|
||||
throw new ErrorCodeException(ErrorCode.newDefineCode("无此称号"));
|
||||
}
|
||||
|
@ -486,7 +491,7 @@ public class PlayerLogic {
|
|||
user.getPlayerInfoManager().setUserTitle(decorationId);
|
||||
break;
|
||||
case 3:
|
||||
Long time3 = null;
|
||||
Long time3;
|
||||
if(decorationId == 0){
|
||||
time3 = 0L;
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue