@@ -55,7 +55,7 @@ namespace ET.Server
int objId = await player.Map.AddUnits(unit, true);
// 临时openId
- string _openId = player.GetComponent<PlayerDataComponent>().Data.Id.ToString();
+ string _openId = (10000 + new Random().Next(999)).ToString();
player.Map.AddUnitPlayer(_openId, request.UnitId, objId, 0, unit.name, "");