周睿 1 anno fa
parent
commit
ee7658f6fa

+ 1 - 1
app_business/lib/view/home/event_manage/event_manage.dart

@@ -334,7 +334,7 @@ class _RouteSelectDialog extends GetView<EventManagerController> {
                         Get.back();
                       },
                       color: Colors.orange,
-                      child: const Text('随机'))),
+                      child: const Text('取消'))),
               SizedBox(
                   height: 38,
                   width: 106.67,

+ 2 - 0
libs/track_common/lib/service/map_watch.dart

@@ -210,6 +210,7 @@ abstract class MapWatch extends PlugController {
   Future<void> updateEvent(EventOnMap old, EventInfo newOne) async {
     final newUserList = <PlayerOnMap>[];
 
+    final ext = await getEventInfoExt(old.id);
     for (final nUser in newOne.players) {
       late PlayerOnMap user;
       final oUser = old.getUserById(nUser.id);
@@ -222,6 +223,7 @@ abstract class MapWatch extends PlugController {
       newUserList.add(user);
     }
     old.userList = newUserList;
+    old.ext = ext;
   }
 
   Future<void> playerUpdateMap(PlayerOnMap info) async {