오윤석

superpass 지정

...@@ -97,6 +97,13 @@ public class Api { ...@@ -97,6 +97,13 @@ public class Api {
97 } 97 }
98 98
99 static public void auth(String doorId, final Callback callback) { 99 static public void auth(String doorId, final Callback callback) {
100 + if("123123123".equals(doorId)) {
101 + // 테스트를 위한 super pass
102 + callback.callbackMethod(true);
103 + Api.accessToken = "superpass";
104 + return;
105 + }
106 +
100 JsonObject params = new JsonObject(); 107 JsonObject params = new JsonObject();
101 params.addProperty("door_id", doorId); 108 params.addProperty("door_id", doorId);
102 callApi("GET", "/api/auth", params, new Callback() { 109 callApi("GET", "/api/auth", params, new Callback() {
......