Jelajahi Sumber

Removed unused logs

Iñigo Valentin 5 tahun lalu
induk
melakukan
5640c5bd57

+ 2 - 1
application/API/v2/bin/upload_run_dungeon.py

@@ -150,6 +150,7 @@ def parseRun(db, data_request, data_response):
         crystal = mana = data_response["reward"]["crystal"]
     else:
         crystal = 0
+    guild_points = 0
     # TODO Read helper. Do a test with SWBD-debug
     helper = 0
 
@@ -161,7 +162,7 @@ def parseRun(db, data_request, data_response):
 
     score = None
     rank = None
-    insert(db, "run", (uid, id, dtime, area_type, area, stage, difficulty, win, time, mana, energy, crystal, helper, score, rank))
+    insert(db, "run", (uid, id, dtime, area_type, area, stage, difficulty, win, time, mana, energy, crystal, guild_points, helper, score, rank))
 
     # Parse various types of reward
     crate = data_response["reward"]["crate"]

+ 0 - 7
application/action/login.php

@@ -26,26 +26,20 @@
         global $db;
 
         if (!isset($_POST['uname'], $_POST['password'])){
-error_log("-1");
             return -1;
         }
         $uname = SQLite3::escapeString($_POST['uname']);
         if (strlen($uname) == 0){
-error_log("-2");
             return -2;
         }
         $password = SQLite3::escapeString($_POST['password']);
         if (strlen($password) == 0){
-error_log("-3");
             return -3;
         }
         $password = hash('sha256', $password);
-error_log("SELECT uid FROM player WHERE upper(name) = upper('$uname') AND password = '$password';");
         $q = $db->query("SELECT uid FROM player;");
         $r = $q->fetchArray(SQLITE3_ASSOC);
-error_log("RET ID: " . $r["uid"]);
         if (!$r){
-error_log("-4");
             return -4;
         }
         $uid = $r["uid"];
@@ -56,7 +50,6 @@ error_log("-4");
         $_SESSION['uid'] = $uid;
         header("Location: /$uid/");
         die();
-error_log("0");
         return 0;
     }
 ?>

+ 0 - 1
application/entity/Record.php

@@ -100,7 +100,6 @@
                   area_type = $area_type AND
                   area = $area;
             ";
-            error_log($s);
             $q = $db->query($s);
             $r = $q->fetchArray(SQLITE3_ASSOC);
             $this->uid = $r["uid"];

+ 0 - 6
application/entity/Run.php

@@ -199,14 +199,8 @@
                 $type = AREA_TYPE_ID::CAIROS_DUNGEON;
             }
             elseif (APPLICATION::valid_id("DIMENSION_DUNGEON_ID", $r["area"])){
-                if ($this->id == 1486){
-                    error_log("VALID AREA ID: " . $r["area"] . ", " . AREA_TYPE_ID::DIMENSIONAL_HOLE);
-                }
                 $type = AREA_TYPE_ID::DIMENSIONAL_HOLE;
             }
-            if ($this->id == 1486){
-                error_log("INSTANCING DH AREA: " . $r["area"] . ", " . $type);
-            }
             $this->area = new K_Area($r["area"], $type);
             $this->stage = $r["stage"];
             $this->difficulty = $r["difficulty"];

+ 0 - 1
application/page/Artifacts_Page.php

@@ -239,7 +239,6 @@
                     break;
             }
             $s = $s . " ORDER BY type, attribute, archetype, level DESC, original_quality DESC;";
-            error_log($s);
             return $s;
         }
     }

+ 0 - 2
application/page/Enchantments_Page.php

@@ -209,7 +209,6 @@
                     $s .= ") ";
                 }
             }
-            error_log( print_r($this->filters["TYPE"], TRUE) );
             if (count($this->filters["TYPE"]) == 1){
                 // Only one selectd, it's either gems or grindstones
                 if (in_array("GEM", $this->filters["TYPE"])){
@@ -282,7 +281,6 @@
             }
             $s = $s . " ORDER BY type, attribute, archetype, level DESC, original_quality DESC;";
             */
-            error_log($s);
             return $s;
         }
     }

+ 0 - 1
application/page/Report_Skillup_Page.php

@@ -273,7 +273,6 @@
                 CAST(lvl AS FLOAT) / CAST(max_lvl AS FLOAT),
                 max_lvl - lvl DESC
             ";
-            error_log($s);
             return $s;
         }
     }

TEMPAT SAMPAH
application/sw.sqlite


+ 1 - 1
swex-plugin/swdb.js

@@ -111,7 +111,7 @@ module.exports = {
                 success = "Logbook updated succesfully!";
                 break;
             // Battle runs
-            case 'BattleDungeonResult':
+            case 'BattleDungeonResult_V2':
                 apiCommand = "upload_run_dungeon";
                 success = "Cairos run logged sucesfully!"
                 break;