|
@@ -23,9 +23,9 @@ import com.iohao.game.action.skeleton.annotation.ActionMethod;
|
|
import com.iohao.game.action.skeleton.core.CmdInfo;
|
|
import com.iohao.game.action.skeleton.core.CmdInfo;
|
|
import com.iohao.game.action.skeleton.core.commumication.BroadcastContext;
|
|
import com.iohao.game.action.skeleton.core.commumication.BroadcastContext;
|
|
import com.iohao.game.action.skeleton.core.exception.ActionErrorEnum;
|
|
import com.iohao.game.action.skeleton.core.exception.ActionErrorEnum;
|
|
|
|
+import com.iohao.game.action.skeleton.core.flow.FlowContext;
|
|
import com.iohao.game.bolt.broker.core.client.BrokerClientHelper;
|
|
import com.iohao.game.bolt.broker.core.client.BrokerClientHelper;
|
|
import com.iohao.mmo.common.config.GameCode;
|
|
import com.iohao.mmo.common.config.GameCode;
|
|
-import com.iohao.mmo.common.core.flow.MyFlowContext;
|
|
|
|
import com.iohao.mmo.level.cmd.LevelCmd;
|
|
import com.iohao.mmo.level.cmd.LevelCmd;
|
|
import com.iohao.mmo.level.entity.Level;
|
|
import com.iohao.mmo.level.entity.Level;
|
|
import com.iohao.mmo.level.entity.PersonLevelConfig;
|
|
import com.iohao.mmo.level.entity.PersonLevelConfig;
|
|
@@ -105,9 +105,10 @@ public class LevelAction {
|
|
* 玩家手动点升级,升级后会恢复各种状态
|
|
* 玩家手动点升级,升级后会恢复各种状态
|
|
*
|
|
*
|
|
* @param flowContext flowContext
|
|
* @param flowContext flowContext
|
|
|
|
+ * @return 等级信息
|
|
*/
|
|
*/
|
|
@ActionMethod(LevelCmd.personUpLevel)
|
|
@ActionMethod(LevelCmd.personUpLevel)
|
|
- public LevelMessage upLevelPerson(MyFlowContext flowContext) {
|
|
|
|
|
|
+ public LevelMessage upLevelPerson(FlowContext flowContext) {
|
|
long userId = flowContext.getUserId();
|
|
long userId = flowContext.getUserId();
|
|
|
|
|
|
Level level = levelService.ofLevel(userId);
|
|
Level level = levelService.ofLevel(userId);
|