仙充卡线下返利2
parent
1cdb30a18e
commit
f14552a205
|
|
@ -30,10 +30,6 @@ public class Cmd_fightrecord extends GmAbstract {
|
||||||
result = FightRecordLogic.getInstance().getAll(Integer.parseInt(content));
|
result = FightRecordLogic.getInstance().getAll(Integer.parseInt(content));
|
||||||
LOGGER.info("战报信息,all:{}", result);
|
LOGGER.info("战报信息,all:{}", result);
|
||||||
break;
|
break;
|
||||||
case "shenzun":
|
|
||||||
new AddItemHandler();
|
|
||||||
LOGGER.info("神尊等级初始化......");
|
|
||||||
break;
|
|
||||||
case "tuigonghui":
|
case "tuigonghui":
|
||||||
try {
|
try {
|
||||||
int uid = Integer.parseInt(args[1]);
|
int uid = Integer.parseInt(args[1]);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
package com.ljsd.jieling.kefu;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通用修复,在线后台修改玩家数据
|
||||||
|
*/
|
||||||
|
public class Cmd_general extends GmAbstract {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean exec(String[] args) throws Exception {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String exec2(String[] args){
|
||||||
|
// 获取玩家战报系统
|
||||||
|
switch (args[0]) {
|
||||||
|
case "tuigonghui":
|
||||||
|
try {
|
||||||
|
int uid = Integer.parseInt(args[1]);
|
||||||
|
User user = UserManager.getUser(uid);
|
||||||
|
GuildLogic.OnUserLeveFamily(user);
|
||||||
|
user.getPlayerInfoManager().setGuildId(0);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
LOGGER.info("神尊等级初始化......");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -166,7 +166,7 @@ public class GmActivityLogic implements IEventHandler {
|
||||||
}
|
}
|
||||||
// 不能领
|
// 不能领
|
||||||
if (num < arbMission.getRechargeNum()){
|
if (num < arbMission.getRechargeNum()){
|
||||||
LOGGER.error("默认返利,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),price,arbMission.getRechargeNum());
|
LOGGER.error("默认返利,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),num,arbMission.getRechargeNum());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 发邮件
|
// 发邮件
|
||||||
|
|
@ -203,7 +203,7 @@ public class GmActivityLogic implements IEventHandler {
|
||||||
}
|
}
|
||||||
// 不能领
|
// 不能领
|
||||||
if (num < arbMission.getRechargeNum()){
|
if (num < arbMission.getRechargeNum()){
|
||||||
LOGGER.error("单日累充,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),price,arbMission.getRechargeNum());
|
LOGGER.error("单日累充,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),num,arbMission.getRechargeNum());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// 发邮件
|
// 发邮件
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue