fix hot
parent
57ca077510
commit
69b64a7f57
|
@ -2,12 +2,16 @@ package com.ljsd.jieling.hotfix;
|
|||
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.sun.tools.attach.AgentInitializationException;
|
||||
import com.sun.tools.attach.AgentLoadException;
|
||||
import com.sun.tools.attach.AttachNotSupportedException;
|
||||
import com.sun.tools.attach.VirtualMachine;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.management.ManagementFactory;
|
||||
import java.util.List;
|
||||
|
@ -60,7 +64,7 @@ public class HotfixUtil{
|
|||
for (ClassBean cl : list) {
|
||||
String path = "../conf/hotswap/"+cl.getName();
|
||||
LOGGER.info("HotfixUtil->i={},path={}", i, path);
|
||||
vm.loadAgent("../lib/hotfix.jar",path);//path参数即agentmain()方法的第一个参数
|
||||
vm.loadAgent("../lib/serverlogiclib/hotfix.jar",path);//path参数即agentmain()方法的第一个参数
|
||||
i++;
|
||||
}
|
||||
currVerion = version;
|
||||
|
|
|
@ -162,7 +162,6 @@ public class HeroLogic {
|
|||
|
||||
|
||||
public void random(ISession session,int type) throws Exception {
|
||||
LOGGER.info("test randomxxxxx... the type={} ",type);
|
||||
int uid = session.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
SLotterySetting sLotterySetting = SLotterySetting.getsLotterySettingMap().get(type);
|
||||
|
|
|
@ -199,10 +199,20 @@ public class BuyGoodsLogic {
|
|||
MailLogic.getInstance().sendMail(user.getId(),title,content,rewardStr,nowTime, Global.MAIL_EFFECTIVE_TIME);
|
||||
resultRes.setResultCode(1);
|
||||
KtEventUtils.onKtEvent(user, ParamEventBean.UserPayEvent,goodsId,orderId,resultRes.getResultCode(),price);
|
||||
notifyPaySuccessFul(uid,goodsId);
|
||||
return resultRes;
|
||||
|
||||
}
|
||||
|
||||
//通知前端充值成功
|
||||
public static void notifyPaySuccessFul(int uid,int goodsId){
|
||||
ISession session = OnlineUserManager.getSessionByUid(uid);
|
||||
if(session!=null){
|
||||
PlayerInfoProto.NotifyPaySuccessfulIndicaiton build = PlayerInfoProto.NotifyPaySuccessfulIndicaiton.newBuilder().setGoodsId(goodsId).build();
|
||||
MessageUtil.sendIndicationMessage(session,1, MessageTypeProto.MessageType.NOTIFY_PAY_SUCCESS_INDICATION_VALUE,build,true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 购买物品后钩子函数
|
||||
|
|
Loading…
Reference in New Issue