Merge branch 'master_test_gn' of http://60.1.1.230/backend/jieling_server into master_test_gn

back_recharge
lvxinran 2021-06-07 14:32:32 +08:00
commit 9b0c7b6548
1 changed files with 7 additions and 2 deletions

View File

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