挖宝重置优化
parent
8c8f58bee5
commit
2bc03ed615
|
|
@ -1,9 +1,10 @@
|
|||
package com.ljsd.jieling.kefu;
|
||||
|
||||
import com.ljsd.jieling.logic.activity.ActivityLogic;
|
||||
import com.ljsd.jieling.logic.activity.ActivityType;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.family.GuildLogic;
|
||||
import com.ljsd.jieling.logic.fight.FightRecordLogic;
|
||||
|
||||
/**
|
||||
* 通用修复,在线后台修改玩家数据
|
||||
|
|
@ -28,7 +29,17 @@ public class Cmd_general extends GmAbstract {
|
|||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
LOGGER.info("神尊等级初始化......");
|
||||
LOGGER.info("玩家退工会......{}",args[1]);
|
||||
break;
|
||||
case "wabao":
|
||||
try {
|
||||
int uid = Integer.parseInt(args[1]);
|
||||
User user = UserManager.getUser(uid);
|
||||
ActivityLogic.getInstance().resumeActivity(user, ActivityType.SUB_ACTIVITY);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
LOGGER.info("挖宝重置......{}",args[1]);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -129,12 +129,7 @@ public class SubActivity extends AbstractActivity {
|
|||
}
|
||||
|
||||
if (costItemNum <= 0 || rewardList.size() == 0){
|
||||
if (sBlessingConfigNew.getFloorCount() > user.getActivityManager().getSubRewardPoolInfo().getLay()){
|
||||
ActivityLogic.getInstance().resumeActivity(user, ActivityType.SUB_ACTIVITY);
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}else {
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
// 消耗道具
|
||||
ItemUtil.itemCost(user, new int[][]{{costItemId,costItemNum}}, BIReason.SUB_ACTIVITY_CONSUME, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue