mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交地图选择
This commit is contained in:
@@ -78,6 +78,20 @@ public class GOnHookController {
|
||||
|
||||
}
|
||||
|
||||
//切换地图
|
||||
@ApiImplicitParams({})
|
||||
@ApiOperation(value = "切换地图")
|
||||
@PostMapping("/setMapId/{mapId}")
|
||||
public NewsContext<ModeOnHook> setMapId(@CurrentPlayer Player player,@PathVariable Integer mapId){
|
||||
//判断是否有这个地图
|
||||
TbGOnHookMaps map = TD.DATA.getTbGOnHookMaps().get(mapId);
|
||||
if (Objects.isNull(map)) NewsContext.onFail("切换地图失败 没有这个地图哦");
|
||||
ModeOnHook data = this.getInfo(player).data;
|
||||
data.setOnHookMap(mapId);
|
||||
modeOnHookService.saveOrUpdate(data);
|
||||
return NewsContext.onSuccess("成功",data);
|
||||
}
|
||||
|
||||
//生成野怪
|
||||
@ApiImplicitParams({})
|
||||
@ApiOperation(value = "生成野怪")
|
||||
|
@@ -26,7 +26,6 @@ public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> i
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@Retryable(RetryException.class)
|
||||
public Resource addResourceValue(Long playerId, int type, Long value) {
|
||||
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
{
|
||||
"id": 120002,
|
||||
"name": "魔法镇",
|
||||
"mapImage": "ui/map/天空城_图片/spriteFrame",
|
||||
"mapImage": "ui/map/魔法镇_图片/spriteFrame",
|
||||
"mapId": 60002,
|
||||
"petIds": [
|
||||
10003,
|
||||
|
Reference in New Issue
Block a user