test
This commit is contained in:
parent
9fffc9d809
commit
16e7f989a0
2 changed files with 4 additions and 2 deletions
|
@ -47,11 +47,12 @@ public class GetRequest {
|
||||||
|
|
||||||
protected void onGetExecute(String result) {
|
protected void onGetExecute(String result) {
|
||||||
try {
|
try {
|
||||||
|
Log.i("GET", result);
|
||||||
callback.onGetResponse((new JSONObject(
|
callback.onGetResponse((new JSONObject(
|
||||||
result
|
result
|
||||||
)));
|
)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.i("Exception", e.toString()); // STATIC
|
Log.i("ExceptionGET", e.toString()); // STATIC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,13 +63,14 @@ public class PostRequest {
|
||||||
|
|
||||||
protected void onPostExecute(String result) {
|
protected void onPostExecute(String result) {
|
||||||
try {
|
try {
|
||||||
|
Log.i("POST", result);
|
||||||
callback.onPostResponse((new JSONObject(
|
callback.onPostResponse((new JSONObject(
|
||||||
Encryption.aesDecrypt(
|
Encryption.aesDecrypt(
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
)));
|
)));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.i("Exception", e.toString()); // STATIC
|
Log.i("POSTException", e.toString()); // STATIC
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue