- fix Restart app

- Check thêm gửi giao dịch thành công
This commit is contained in:
thuannd88
2024-09-24 18:05:46 +07:00
parent a55e7de435
commit 055c6b6343
2 changed files with 30 additions and 13 deletions
+9 -1
View File
@@ -214,7 +214,15 @@ namespace SafeBagDE70.API
if (response.EnsureSuccessStatusCode().StatusCode == HttpStatusCode.OK)
{
var jsonResponse = await response.Content.ReadAsStringAsync();
bSuccess = true;
if(jsonResponse!=null)
{
var countingRecv=JsonConvert.DeserializeObject<CountingData2Send>(jsonResponse);
if (countingRecv!=null && countingRecv.TransactionCode == data2Send.TransactionCode)
{
bSuccess = true;
}
}
}
}
catch(Exception ex)