Forráskód Böngészése

【feat】 添加对外服务 api

523096025 1 éve
szülő
commit
0387c69127

+ 6 - 1
huimv-eartag2-platform/huimv-eartag2-admin/src/main/java/com/huimv/eartag2/admin/controller/YourApplication.java

@@ -29,8 +29,13 @@ public class YourApplication {
             Integer result =  SendMacAddressToServer.sendMacAddress(encryptedMAC+"@hm",encryptedDisk);
             System.out.println(result);
             if (1==result){
-//                System.exit(0);
+//
                 System.out.println("验证失败");
+                AppEncrypted appEncrypted = new AppEncrypted();
+                appEncrypted.setId(1);
+                appEncrypted.setAppEncrypted(result);
+                appEncryptedService.updateById(appEncrypted);
+                System.exit(0);
             }else {
                 AppEncrypted appEncrypted = new AppEncrypted();
                 appEncrypted.setId(1);

+ 2 - 2
huimv-eartag2-platform/huimv-eartag2-admin/src/main/resources/application.properties

@@ -1,8 +1,8 @@
 #±¾µØÊý¾Ý¿â
 #spring.profiles.active=dev
 #Ô¶³ÌÊý¾Ý¿â
-spring.profiles.active=prod2
-#spring.profiles.active=prod
+#spring.profiles.active=prod2
+spring.profiles.active=prod
 
 device.register.prefix=device_register_
 redis.expire.eartag_online_set=25