Toggle navigation
Toggle navigation
This project
Loading...
Sign in
cse437_e
/
smartdoorlock-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
오윤석
2020-11-09 22:24:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0275219841633cb8a2aa40df6a96bbdc43b68b82
02752198
1 parent
35ecc375
superpass 지정
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
app/src/main/java/com/sunnni/smartdoorlock/api/Api.java
app/src/main/java/com/sunnni/smartdoorlock/api/Api.java
View file @
0275219
...
...
@@ -97,6 +97,13 @@ public class Api {
}
static
public
void
auth
(
String
doorId
,
final
Callback
callback
)
{
if
(
"123123123"
.
equals
(
doorId
))
{
// 테스트를 위한 super pass
callback
.
callbackMethod
(
true
);
Api
.
accessToken
=
"superpass"
;
return
;
}
JsonObject
params
=
new
JsonObject
();
params
.
addProperty
(
"door_id"
,
doorId
);
callApi
(
"GET"
,
"/api/auth"
,
params
,
new
Callback
()
{
...
...
Please
register
or
login
to post a comment