From edb22667a073108f016875112bc639b905f91b33 Mon Sep 17 00:00:00 2001 From: "Vladimir N. Korotenko" Date: Mon, 17 Nov 2025 19:26:27 +0300 Subject: [PATCH] change output to status #10 --- dm-cli/Deals.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dm-cli/Deals.cpp b/dm-cli/Deals.cpp index 7fbd82b..7acb162 100644 --- a/dm-cli/Deals.cpp +++ b/dm-cli/Deals.cpp @@ -233,16 +233,16 @@ int Deals::Status() nlohmann::json jsonData = nlohmann::json::parse(result); std::ostringstream stream; - stream << "success: " << jsonData["result"]["success"] << endl; - stream << "message: " << jsonData["result"]["message"] << endl; + bool isPayment = false; string payload = cleanup_html(base64_decode(jsonData["payload"])); + stream << payload << endl; // order: Paid, order: Completed, order: Executed if (payload.find("Paid") >= 0 || payload.find("Completed") >= 0 || payload.find("Executed") >= 0) { isPayment = true; } - stream << "order: " << isPayment << endl; + string decoded = stream.str(); cout << decoded << endl;