From 60a7864828499b6c3a6814f21031ad454fab4c7f Mon Sep 17 00:00:00 2001 From: "Vladimir N. Korotenko" Date: Tue, 25 Nov 2025 09:32:16 +0300 Subject: [PATCH] =?UTF-8?q?Close=20#10=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dm-cli/.vscode/launch.json | 9 +++------ dm-cli/Deals.cpp | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/dm-cli/.vscode/launch.json b/dm-cli/.vscode/launch.json index 2442d65..85c70b7 100644 --- a/dm-cli/.vscode/launch.json +++ b/dm-cli/.vscode/launch.json @@ -15,12 +15,9 @@ "https://testnet-dm2.bitdeals.org", "--debug", "deal", - "negative", - "-m", - "feedback_message", - "-s", - "Hxhv4ewOOVGbydibNzdNxaWPDkFhDi0N3rdXtPVe5YtkfR2RECUG5KebcRCBmgN94t/NVYBOo/ft/FN1q6p42l8=", - "2NAFmjLid526kjekoMiCm8nX5SxFCfk7jgC" + "status", + "2NDkN9PWdvf8T3AFe57vDsQX9qeJG5Y5iJW" + ], "stopAtEntry": false, "cwd": "${workspaceFolder}", diff --git a/dm-cli/Deals.cpp b/dm-cli/Deals.cpp index 7247275..b35fdcd 100644 --- a/dm-cli/Deals.cpp +++ b/dm-cli/Deals.cpp @@ -241,7 +241,7 @@ int Deals::Status() std::ostringstream stream; bool isPayment = false; - string payload = cleanup_html(base64_decode(jsonData["payload"])); + string payload = 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) @@ -253,7 +253,7 @@ int Deals::Status() cout << decoded << endl; if (isDebug) - ShowDebug(data, decoded, 1, payload); + ShowDebug(data, decoded, 1, result); if (parser.cmdOptionExists("-i") || parser.cmdOptionExists("--is-paid")) { return isPayment == true ? 0 : 1;