fix bugs and fix send otp and sp-392 and sp-372

This commit is contained in:
mohammad
2024-08-27 17:03:52 +03:00
parent e37ce1925b
commit bd2852231d
22 changed files with 421 additions and 238 deletions

View File

@ -43,10 +43,11 @@ class AuthenticationAPI {
},
showServerMessage: true,
expectedResponseModel: (json) {
return 30;
return json['data']['cooldown'];
}
);
return 30;
return response;
} on DioException catch (e) {
if (e.response != null) {
if (e.response!.statusCode == 400) {