yx-聊天gm
parent
4f615fb11d
commit
4a2e7bdf22
|
@ -0,0 +1,29 @@
|
|||
package com.ljsd.jieling.kefu;
|
||||
|
||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||
import com.ljsd.jieling.logic.activity.crossService.CrossServiceLogic;
|
||||
import com.ljsd.jieling.logic.dao.cross.CSPlayer;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
|
||||
/**
|
||||
* 专门为测试大大任心雨写的gm
|
||||
*
|
||||
*/
|
||||
public class Cmd_role_rxy extends GmRoleAbstract{
|
||||
|
||||
@Override
|
||||
public boolean exec(String[] args) throws Exception{
|
||||
switch (args[0]){
|
||||
case "yxld":
|
||||
String score = args[1];
|
||||
User user = getUser();
|
||||
CSPlayer csPlayer = CrossServiceLogic.getPlayerByRedis(user.getId());
|
||||
csPlayer.setCrossYuxulundaoOldScore(Integer.parseInt(score));
|
||||
csPlayer.setCrossYuxulundaoNewScore(Integer.parseInt(score));
|
||||
RedisUtil.getInstence().setObject(CrossServiceLogic.getKey(user.getId()),csPlayer,CrossServiceLogic.EXPIRE);
|
||||
break;
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue