fix online reward
parent
ad721607bb
commit
7f7ec207f9
|
@ -354,7 +354,6 @@ public class ProtocolsManager implements ProtocolsAbstract {
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
iSession.setIndex(index);
|
iSession.setIndex(index);
|
||||||
iSession.setLoginTime(System.currentTimeMillis());
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -113,7 +113,6 @@ public class ISession extends NettyGameSession {
|
||||||
|
|
||||||
public void putBackIndicationToMap(int index,byte[] backMessage){
|
public void putBackIndicationToMap(int index,byte[] backMessage){
|
||||||
this.indexToIndication.putIfAbsent(index,new IndicationMsg(TimeUtils.now(),backMessage));
|
this.indexToIndication.putIfAbsent(index,new IndicationMsg(TimeUtils.now(),backMessage));
|
||||||
System.out.println(index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearIndication(int ackId){
|
public void clearIndication(int ackId){
|
||||||
|
|
|
@ -271,7 +271,7 @@ public class ItemUtil {
|
||||||
Integer itemId = item.getKey();
|
Integer itemId = item.getKey();
|
||||||
Integer value = item.getValue();
|
Integer value = item.getValue();
|
||||||
SItem sItem = SItem.getsItemMap().get(itemId);
|
SItem sItem = SItem.getsItemMap().get(itemId);
|
||||||
int itemNums = privilegeAdd(user, resson, sItem.getItemType(), value);
|
int itemNums = privilegeAdd(user, resson, sItem.getId(), value);
|
||||||
Item hadItem = itemManager.getItem(itemId);
|
Item hadItem = itemManager.getItem(itemId);
|
||||||
int hadNums = 0;
|
int hadNums = 0;
|
||||||
if(hadItem !=null){
|
if(hadItem !=null){
|
||||||
|
|
Loading…
Reference in New Issue