Browse Source

【优化】发送消息到游戏服,objId字符串格式

johnclot69 1 year ago
parent
commit
1ead2afcb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Common/CommonAI/Zone/ZoneEditor/EventTrigger/Actions.Zone.cs

+ 1 - 1
Common/CommonAI/Zone/ZoneEditor/EventTrigger/Actions.Zone.cs

@@ -263,7 +263,7 @@ namespace CommonAI.Zone.ZoneEditor.EventTrigger
                     {
                         return;
                     }
-                    msg = msg.Replace("objid", $"{unit.get_id()}");
+                    msg = msg.Replace("{objid}", $"{unit.get_id()}");
                 }
                 api.ZoneAPI.SendMessageToGameServer(msg);
             }