mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交无缝数据回滚
This commit is contained in:
@@ -32,6 +32,9 @@ public class DemoController {
|
||||
//Id 分配
|
||||
private Integer nClientId = 1;
|
||||
|
||||
//随机Id 分配
|
||||
private Integer nRandomId = 1;
|
||||
|
||||
|
||||
@ApiOperation(value = "获取玩家Id")
|
||||
@GetMapping("/sync/tile/client/id")
|
||||
@@ -39,6 +42,12 @@ public class DemoController {
|
||||
return NewsContext.onSuccess("查询成功",nClientId++);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取随机Id")
|
||||
@GetMapping("/sync/tile/random/id")
|
||||
public NewsContext<Integer> getTileRandomId(){
|
||||
return NewsContext.onSuccess("查询成功",nRandomId++);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取Tile端口")
|
||||
@GetMapping("/sync/tile/port")
|
||||
public NewsContext<Integer> getTilePort(){
|
||||
|
Reference in New Issue
Block a user