25-2/7/2
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 86 KiB |
@@ -30,9 +30,9 @@ class CRUD {
|
|||||||
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials.toString()))}',
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials.toString()))}',
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
Log.print('req: ${response.request}');
|
// Log.print('req: ${response.request}');
|
||||||
Log.print('response: ${response.body}');
|
// Log.print('response: ${response.body}');
|
||||||
Log.print('payload: ${payload}');
|
// Log.print('payload: ${payload}');
|
||||||
// if (response.statusCode == 200) {
|
// if (response.statusCode == 200) {
|
||||||
var jsonData = jsonDecode(response.body);
|
var jsonData = jsonDecode(response.body);
|
||||||
if (jsonData['status'] == 'success') {
|
if (jsonData['status'] == 'success') {
|
||||||
@@ -60,9 +60,9 @@ class CRUD {
|
|||||||
|
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
try {
|
try {
|
||||||
Log.print('req: ${response.request}');
|
// Log.print('req: ${response.request}');
|
||||||
Log.print('response: ${response.body}');
|
// Log.print('response: ${response.body}');
|
||||||
Log.print('payload: ${payload}');
|
// Log.print('payload: ${payload}');
|
||||||
var jsonData = jsonDecode(response.body);
|
var jsonData = jsonDecode(response.body);
|
||||||
|
|
||||||
if (jsonData['status'] == 'success') {
|
if (jsonData['status'] == 'success') {
|
||||||
|
|||||||
Reference in New Issue
Block a user