Browse Source

mac记录订正

lvjincheng 2 years ago
parent
commit
baae65ddbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/BowArrow/Scripts/Network/SocketComp/UserComp.cs

+ 1 - 1
Assets/BowArrow/Scripts/Network/SocketComp/UserComp.cs

@@ -16,6 +16,7 @@ public class UserComp : JCUnityLib.Singleton<UserComp>
     {
         string mac = LoginMgr.myUserInfo.mac;
         if (string.IsNullOrEmpty(mac)) return;
+        _lastSaveMac = mac;
         int type = AimHandler.ins.DeviceType;
         if (type > 0) {
             UserPlayer.ins.call("userComp.saveMac2", mac, type);
@@ -26,7 +27,6 @@ public class UserComp : JCUnityLib.Singleton<UserComp>
                 AimHandler.ins.InitGyr(gyrStr);
                 AimHandler.ins.InitMag(magStr);
             };
-            _lastSaveMac = mac;
             UserPlayer.ins.call("userComp.saveMac", new object[]{mac}, cb);
         }
     }