fix force

back_recharge
wangyuan 2019-09-20 18:24:34 +08:00
parent e1c8e2fdc6
commit c399c67a2a
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public class GmService implements RPCRequestGMIFace.Iface {
sendIds.addAll(rechargeInfoMap.keySet());
}else if(cmd.contains("force")){
Set<ZSetOperations.TypedTuple<String>> rankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.FORCE_RANK, "", 0, 60);
Set<ZSetOperations.TypedTuple<String>> rankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.FORCE_RANK, "", 0, -1);
for (ZSetOperations.TypedTuple<String> item : rankInfo) {
String value = item.getValue();
int uid = Integer.parseInt(value);

View File

@ -1301,7 +1301,7 @@ public class HeroLogic {
public int calHeoForce(User user, Hero hero,boolean isMyself){
Map<Integer, Integer> heroAllAttribute;
heroAllAttribute = calHeroFinalAttributeWhenInMap(user, hero,true,0);
heroAllAttribute = calHeroNotBufferAttribute(user, hero,true,0);
//战力保存
int force = calForce(heroAllAttribute);
return force + heroAllAttribute.get(HeroAttributeEnum.EquipForce.getPropertyId());