Showing
2 changed files
with
37 additions
and
16 deletions
| ... | @@ -650,7 +650,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -650,7 +650,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 650 | if (failure) { | 650 | if (failure) { |
| 651 | failure(error); | 651 | failure(error); |
| 652 | } | 652 | } |
| 653 | - NSLog(@"Error at login %@", error ); | 653 | + NSLog(@"Error at register %@", error ); |
| 654 | }]; | 654 | }]; |
| 655 | } | 655 | } |
| 656 | 656 | ||
| ... | @@ -1021,7 +1021,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1021,7 +1021,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1021 | NSLog(@"Error at token %@", error ); | 1021 | NSLog(@"Error at token %@", error ); |
| 1022 | }]; | 1022 | }]; |
| 1023 | } | 1023 | } |
| 1024 | - NSLog(@"Error at get cards %@", error ); | 1024 | + NSLog(@"Error at get delete card %@", error ); |
| 1025 | } | 1025 | } |
| 1026 | }]; | 1026 | }]; |
| 1027 | } | 1027 | } |
| ... | @@ -1057,7 +1057,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1057,7 +1057,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1057 | if (failure) { | 1057 | if (failure) { |
| 1058 | failure(error); | 1058 | failure(error); |
| 1059 | } | 1059 | } |
| 1060 | - NSLog(@"Error at get cards %@", error ); | 1060 | + NSLog(@"Error at verify ticket %@", error ); |
| 1061 | }]; | 1061 | }]; |
| 1062 | } | 1062 | } |
| 1063 | 1063 | ||
| ... | @@ -1093,7 +1093,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1093,7 +1093,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1093 | NSLog(@"Error at token %@", error ); | 1093 | NSLog(@"Error at token %@", error ); |
| 1094 | }]; | 1094 | }]; |
| 1095 | } | 1095 | } |
| 1096 | - NSLog(@"Error at get cards %@", error ); | 1096 | + NSLog(@"Error at get coupons %@", error ); |
| 1097 | } | 1097 | } |
| 1098 | }]; | 1098 | }]; |
| 1099 | } | 1099 | } |
| ... | @@ -1130,7 +1130,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1130,7 +1130,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1130 | NSLog(@"Error at token %@", error ); | 1130 | NSLog(@"Error at token %@", error ); |
| 1131 | }]; | 1131 | }]; |
| 1132 | } | 1132 | } |
| 1133 | - NSLog(@"Error at get cards %@", error ); | 1133 | + NSLog(@"Error at get transaction history %@", error ); |
| 1134 | } | 1134 | } |
| 1135 | }]; | 1135 | }]; |
| 1136 | } | 1136 | } |
| ... | @@ -1167,7 +1167,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1167,7 +1167,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1167 | NSLog(@"Error at token %@", error ); | 1167 | NSLog(@"Error at token %@", error ); |
| 1168 | }]; | 1168 | }]; |
| 1169 | } | 1169 | } |
| 1170 | - NSLog(@"Error at get cards %@", error ); | 1170 | + NSLog(@"Error at get points history %@", error ); |
| 1171 | } | 1171 | } |
| 1172 | }]; | 1172 | }]; |
| 1173 | } | 1173 | } |
| ... | @@ -1204,7 +1204,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1204,7 +1204,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1204 | NSLog(@"Error at token %@", error ); | 1204 | NSLog(@"Error at token %@", error ); |
| 1205 | }]; | 1205 | }]; |
| 1206 | } | 1206 | } |
| 1207 | - NSLog(@"Error at get cards %@", error ); | 1207 | + NSLog(@"Error at add address %@", error ); |
| 1208 | } | 1208 | } |
| 1209 | }]; | 1209 | }]; |
| 1210 | } | 1210 | } |
| ... | @@ -1241,7 +1241,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1241,7 +1241,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1241 | NSLog(@"Error at token %@", error ); | 1241 | NSLog(@"Error at token %@", error ); |
| 1242 | }]; | 1242 | }]; |
| 1243 | } | 1243 | } |
| 1244 | - NSLog(@"Error at get cards %@", error ); | 1244 | + NSLog(@"Error at get address %@", error ); |
| 1245 | } | 1245 | } |
| 1246 | }]; | 1246 | }]; |
| 1247 | } | 1247 | } |
| ... | @@ -1323,7 +1323,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1323,7 +1323,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1323 | NSLog(@"Error at token %@", error ); | 1323 | NSLog(@"Error at token %@", error ); |
| 1324 | }]; | 1324 | }]; |
| 1325 | } | 1325 | } |
| 1326 | - NSLog(@"Error at edit profile %@", error ); | 1326 | + NSLog(@"Error at edit address %@", error ); |
| 1327 | } | 1327 | } |
| 1328 | }]; | 1328 | }]; |
| 1329 | } | 1329 | } |
| ... | @@ -1338,9 +1338,30 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1338,9 +1338,30 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1338 | } | 1338 | } |
| 1339 | } failureBlock:^(NSError *error) { | 1339 | } failureBlock:^(NSError *error) { |
| 1340 | if (failure) { | 1340 | if (failure) { |
| 1341 | - failure(error); | 1341 | + NSDictionary* dict = [NSDictionary alloc]; |
| 1342 | + dict = [error userInfo]; | ||
| 1343 | + NSString* errorCode = [dict objectForKey:@"NSLocalizedDescription"]; | ||
| 1344 | + if ([errorCode isEqual:@"Request failed: unauthorized (401)"]) { | ||
| 1345 | + [self refreshToken:^(NSDictionary *response) { | ||
| 1346 | + [self sendContext8:jsonData successBlock:^(NSDictionary *contextResponse) { | ||
| 1347 | + if (success) { | ||
| 1348 | + success(contextResponse); | ||
| 1349 | + } | ||
| 1350 | + } failureBlock:^(NSError *error) { | ||
| 1351 | + if (failure) { | ||
| 1352 | + failure(error); | ||
| 1353 | + } | ||
| 1354 | + }]; | ||
| 1355 | + } failureBlock:^(NSError *error) { | ||
| 1356 | + if (failure) { | ||
| 1357 | + [_db executeUpdate:@"DROP TABLE requestVariables"]; | ||
| 1358 | + failure(error); | ||
| 1359 | + } | ||
| 1360 | + NSLog(@"Error at token %@", error ); | ||
| 1361 | + }]; | ||
| 1362 | + } | ||
| 1363 | + NSLog(@"Error at delete address %@", error ); | ||
| 1342 | } | 1364 | } |
| 1343 | - NSLog(@"Error at get cards %@", error ); | ||
| 1344 | }]; | 1365 | }]; |
| 1345 | } | 1366 | } |
| 1346 | 1367 | ||
| ... | @@ -1376,7 +1397,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1376,7 +1397,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1376 | NSLog(@"Error at token %@", error ); | 1397 | NSLog(@"Error at token %@", error ); |
| 1377 | }]; | 1398 | }]; |
| 1378 | } | 1399 | } |
| 1379 | - NSLog(@"Error at get cards %@", error ); | 1400 | + NSLog(@"Error at redeem coupons %@", error ); |
| 1380 | } | 1401 | } |
| 1381 | }]; | 1402 | }]; |
| 1382 | } | 1403 | } |
| ... | @@ -1406,7 +1427,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1406,7 +1427,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1406 | if (failure) { | 1427 | if (failure) { |
| 1407 | failure(error); | 1428 | failure(error); |
| 1408 | } | 1429 | } |
| 1409 | - NSLog(@"Error at get cards %@", error ); | 1430 | + NSLog(@"Error at forgot password %@", error ); |
| 1410 | }]; | 1431 | }]; |
| 1411 | } | 1432 | } |
| 1412 | 1433 | ||
| ... | @@ -1430,7 +1451,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1430,7 +1451,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1430 | if (failure) { | 1451 | if (failure) { |
| 1431 | failure(error); | 1452 | failure(error); |
| 1432 | } | 1453 | } |
| 1433 | - NSLog(@"Error at get cards %@", error ); | 1454 | + NSLog(@"Error at request otp %@", error ); |
| 1434 | }]; | 1455 | }]; |
| 1435 | } | 1456 | } |
| 1436 | 1457 | ||
| ... | @@ -1464,7 +1485,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1464,7 +1485,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1464 | if (failure) { | 1485 | if (failure) { |
| 1465 | failure(error); | 1486 | failure(error); |
| 1466 | } | 1487 | } |
| 1467 | - NSLog(@"Error at get cards %@", error ); | 1488 | + NSLog(@"Error at reset password %@", error ); |
| 1468 | }]; | 1489 | }]; |
| 1469 | } | 1490 | } |
| 1470 | 1491 | ||
| ... | @@ -1514,7 +1535,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) | ... | @@ -1514,7 +1535,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION) |
| 1514 | if (failure) { | 1535 | if (failure) { |
| 1515 | failure(error); | 1536 | failure(error); |
| 1516 | } | 1537 | } |
| 1517 | - NSLog(@"Error at get cards %@", error ); | 1538 | + NSLog(@"Error at retrieve multilingual merchants %@", error ); |
| 1518 | }]; | 1539 | }]; |
| 1519 | } | 1540 | } |
| 1520 | 1541 | ... | ... |
-
Please register or login to post a comment