Quellcode durchsuchen

Revert "修复uuid导致的创建失败问题"

This reverts commit 6b41eb177f9325b6f6c874fcf2526d7b32b28999.
HuangKai vor 2 Wochen
Ursprung
Commit
e9c9540a26
1 geänderte Dateien mit 2 neuen und 9 gelöschten Zeilen
  1. 2 9
      src/model/AccountAuth.js

+ 2 - 9
src/model/AccountAuth.js

@@ -209,19 +209,12 @@ class AccountAuth {
         });        
     }
 
-    getIDByTime(){
-        let uuid = "sw" + Date.now().toString(36).slice(-8);
-        console.log(uuid);
-        return uuid;
-    }
-
     cteateMapData(user_id, map_name = 'map'){
         var sql = `INSERT INTO 
                     medba.dat_map 
-                        (map_name, map_data, user_id, update_time, create_time, map_uuid) 
+                        (map_name, map_data, user_id, update_time, create_time) 
                     VALUES 
-                        ('${map_name}', '{ "type": "FeatureCollection", "features": [], "center": { "x": 116.39639, "y": 39.91638 } }', 
-                        ${user_id}, NOW(), NOW(), '${this.getIDByTime()}')`;
+                        ('${map_name}', '{ "type": "FeatureCollection", "features": [], "center": { "x": 116.39639, "y": 39.91638 } }', ${user_id}, NOW(), NOW())`;
         var msg = {
             cmd: "update", // server端要进行判断的
             data: {