提交地图选择

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-12-03 03:31:19 +08:00
parent 4c47969828
commit cebe7cc9d3
22 changed files with 697 additions and 168 deletions

View File

@@ -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 = "生成野怪")

View File

@@ -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) {

View File

@@ -15,7 +15,7 @@
{
"id": 120002,
"name": "魔法镇",
"mapImage": "ui/map/天空城_图片/spriteFrame",
"mapImage": "ui/map/魔法镇_图片/spriteFrame",
"mapId": 60002,
"petIds": [
10003,