月卡问题处理
parent
b0a4d43b1c
commit
89cf02ed1a
|
@ -35,7 +35,9 @@ import com.ljsd.jieling.logic.player.PlayerLogic;
|
|||
import com.ljsd.jieling.logic.question.QuestionLogic;
|
||||
import com.ljsd.jieling.logic.store.BuyGoodsNewLogic;
|
||||
import com.ljsd.jieling.logic.store.StoreLogic;
|
||||
import com.ljsd.jieling.logic.store.newRechargeInfo.bean.AbstractWelfareBag;
|
||||
import com.ljsd.jieling.logic.store.newRechargeInfo.bean.ReceiveWelfareBag;
|
||||
import com.ljsd.jieling.logic.store.newRechargeInfo.rechargeHandler.RechargeHandler;
|
||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||
import com.ljsd.jieling.network.session.ISession;
|
||||
import com.ljsd.jieling.thread.task.RPCServerTask;
|
||||
|
@ -148,6 +150,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
|||
FourChallengeLogic.getInstance().firstGetTimes(user);// 四灵试炼初始化
|
||||
StoreLogic.getInstance().reloadStoreInfo(user,7);//重载功能商店
|
||||
ExplorerMapLogic.getInstance().calOfflineReward(user);//挂机探索
|
||||
monthCardRefresh(user);//月卡特殊处理
|
||||
faBaoJuLingHandler(user);//法宝修改
|
||||
//森罗幻境自动挂机返回掉落展示清除
|
||||
Map<Integer,Integer> dropShow = mapManager.getTowerGetRewardInfoShowMap();
|
||||
|
@ -260,6 +263,25 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
|||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);
|
||||
}
|
||||
|
||||
//月卡特殊处理
|
||||
private void monthCardRefresh(User user){
|
||||
try {
|
||||
RechargeHandler rechargeHandler = BuyGoodsNewLogic.getRechargeHandler(3);
|
||||
long time = 16932816000000L;
|
||||
AbstractWelfareBag bag = rechargeHandler.getBag(user, 25002);
|
||||
if (bag != null && bag.getRefreshTime() > time){
|
||||
bag.setRefreshTime(bag.getStartTime() + bag.getDailyUpdate() * TimeUtils.DAY);
|
||||
}
|
||||
|
||||
AbstractWelfareBag bag1 = rechargeHandler.getBag(user, 25003);
|
||||
if (bag1 != null && bag1.getRefreshTime() > time){
|
||||
bag1.setRefreshTime(bag1.getStartTime() + bag1.getDailyUpdate() * TimeUtils.DAY);
|
||||
}
|
||||
}catch (Exception e){
|
||||
LOGGER.error("月卡特殊处理异常:{}",user.getId(),e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查工会得区服id,合服处理
|
||||
* @param user 用户
|
||||
|
|
|
@ -174,8 +174,6 @@ public class BuyGoodsNewLogic {
|
|||
|
||||
/**
|
||||
* 是否花费人民币购买
|
||||
* @param orderId
|
||||
* @return
|
||||
*/
|
||||
private static boolean isRmbBuy(String orderId){
|
||||
return !gm_modifier.equals(orderId) && !test_buy_order.equals(orderId) && !support_order.equals(orderId) && !vouchers_order.equals(orderId);
|
||||
|
@ -183,14 +181,6 @@ public class BuyGoodsNewLogic {
|
|||
|
||||
/**
|
||||
* 礼包发送接口
|
||||
* @param uid
|
||||
* @param sdkGoodsId
|
||||
* @param openId
|
||||
* @param orderId
|
||||
* @param orderTime
|
||||
* @param amount
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public static Result sendGoods(int uid, String sdkGoodsId, String openId, String orderId, long orderTime, int amount) throws Exception {
|
||||
Result resultRes = new Result();
|
||||
|
@ -890,12 +880,6 @@ public class BuyGoodsNewLogic {
|
|||
|
||||
/**
|
||||
* 发送推送礼包
|
||||
*
|
||||
* @param session
|
||||
* @param user
|
||||
* @param type
|
||||
* @param star
|
||||
* @throws Exception
|
||||
*/
|
||||
public static void openPush(ISession session,User user,int type,int star) throws Exception{
|
||||
NewRechargeInfo info = user.getPlayerInfoManager().getNewRechargeInfo();
|
||||
|
|
Loading…
Reference in New Issue