Merge branch 'master_prb_gn' into master_test_gn
commit
d435e81ffc
|
@ -193,6 +193,10 @@ public class LjsdMongoTemplate implements MongoUpdateImp {
|
||||||
int serverIdByUid = AreaManager.getInstance().getServerIdByUid(Integer.parseInt(id), GameApplication.serverId);
|
int serverIdByUid = AreaManager.getInstance().getServerIdByUid(Integer.parseInt(id), GameApplication.serverId);
|
||||||
otherMonogTemplate = MongoUtil.getInstence().getMonogTemplate(serverIdByUid);
|
otherMonogTemplate = MongoUtil.getInstence().getMonogTemplate(serverIdByUid);
|
||||||
}
|
}
|
||||||
|
if (otherMonogTemplate == null) {
|
||||||
|
LOGGER.info("updateMongoData id={} otherMonogTemplate == null ", id);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for (MongoUpdateCache.UpdateRequest request : entry.getValue().values()) {
|
for (MongoUpdateCache.UpdateRequest request : entry.getValue().values()) {
|
||||||
if (request.opCode == 2) {
|
if (request.opCode == 2) {
|
||||||
|
|
|
@ -810,7 +810,12 @@ public class CBean2Proto {
|
||||||
|
|
||||||
|
|
||||||
public static CommonProto.Friend getFriendInfo(int friendId, FriendManager friendManager) throws Exception {
|
public static CommonProto.Friend getFriendInfo(int friendId, FriendManager friendManager) throws Exception {
|
||||||
User user = UserManager.getUser(friendId);
|
User user = null;
|
||||||
|
try {
|
||||||
|
user = UserManager.getUser(friendId);
|
||||||
|
} catch (Exception e) {
|
||||||
|
LOGGER.info("getFriendInfo user == null friendId={} e={}", friendId, e.toString());
|
||||||
|
}
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue