fix password

This commit is contained in:
mohammad
2024-08-07 17:20:19 +03:00
parent afe37dd68a
commit 5aec3d37fb
8 changed files with 199 additions and 42 deletions

View File

@ -197,13 +197,13 @@ class DevicesAPI {
required String invalidTime,
required String deviceId,
List<Schedule>? scheduleList,}) async {
Map<String, dynamic> body = {
"name": name,
"password": password,
"effectiveTime": effectiveTime,
"invalidTime": invalidTime,
};
print('createPassword =$body');
if (scheduleList != null) {
body["scheduleList"] = scheduleList.map((schedule) => schedule.toJson()).toList();
}
@ -235,7 +235,7 @@ class DevicesAPI {
try {
final response = await _httpService.post(
path: ApiEndpoints.addMultipleTimeTemporaryPassword.replaceAll('{doorLockUuid}', deviceId),
showServerMessage: false,
showServerMessage: true,
body: {
"effectiveTime": effectiveTime,
"invalidTime": invalidTime