back_recharge
gaojie 2019-04-09 23:59:56 +08:00
parent 6165f20a6a
commit 419a5c569e
1 changed files with 2 additions and 4 deletions

View File

@ -73,6 +73,8 @@ public class GMRequestHandler extends BaseHandler{
int nowTime =(int) (TimeUtils.now()/1000); int nowTime =(int) (TimeUtils.now()/1000);
Mail mail = new Mail(uid,"GM","GM",prarm3,nowTime,30*24*60*60,"GM", Global.MAIL_TYPE_GM); Mail mail = new Mail(uid,"GM","GM",prarm3,nowTime,30*24*60*60,"GM", Global.MAIL_TYPE_GM);
cUser.getMailManager().addMail(mail); cUser.getMailManager().addMail(mail);
PlayerInfoProto.RedPointInfo redPointInfo = PlayerInfoProto.RedPointInfo.newBuilder().setType(1).build();
MessageUtil.sendMessage(iSession,1,MessageTypeProto.MessageType.SEND_RED_POINT_INDICATION_VALUE,redPointInfo,true);
break; break;
case GlobalGm.HERO_STAR: case GlobalGm.HERO_STAR:
CommonProto.Drop.Builder drop = ItemUtil.drop(cUser, new int[][]{{prarm1, 1}}); CommonProto.Drop.Builder drop = ItemUtil.drop(cUser, new int[][]{{prarm1, 1}});
@ -141,10 +143,6 @@ public class GMRequestHandler extends BaseHandler{
} }
try { try {
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GM_RESPONSE_VALUE, null, true); MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GM_RESPONSE_VALUE, null, true);
if (gmCommandType == GlobalGm.SEND_MAIIL){
PlayerInfoProto.RedPointInfo redPointInfo = PlayerInfoProto.RedPointInfo.newBuilder().setType(1).build();
MessageUtil.sendMessage(iSession,1,MessageTypeProto.MessageType.SEND_RED_POINT_INDICATION_VALUE,redPointInfo,true);
}
LOGGER.info("back to client!"); LOGGER.info("back to client!");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();