Close #10 Поменял местами Result и Payload
This commit is contained in:
@@ -287,7 +287,7 @@ int Deals::Status()
|
||||
cout << decoded << endl;
|
||||
|
||||
if (isDebug)
|
||||
ShowDebug(data, decoded, 1, result);
|
||||
ShowDebug(data, result, 1, decoded);
|
||||
if (parser.cmdOptionExists("-i") || parser.cmdOptionExists("--is-paid"))
|
||||
{
|
||||
return isPayment == true ? 0 : 1;
|
||||
|
||||
8
dm-cli/test.html
Normal file
8
dm-cli/test.html
Normal file
@@ -0,0 +1,8 @@
|
||||
"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA512\n\ndeal:\n order: Executed\n type: Postpayment\n at:
|
||||
https://testnet-dm2.bitdeals.org\n date: 2025-10-26 10:14:57 UTC\n salt: 1e8601eb\n seller:\n address:
|
||||
mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp\n rating: 600+, 30%\n customer:\n address: mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC\n
|
||||
rating: 600+, 36%\n payment:\n address: 2NDkN9PWdvf8T3AFe57vDsQX9qeJG5Y5iJW\n until: 2025-10-27 10:14:57 UTC\n sum:
|
||||
0.002 tBTC\n feedback:\n leave-before: 2025-11-09 10:14:57 UTC\n status: None\n comments: cancel_test2\n-----BEGIN PGP
|
||||
SIGNATURE-----\nVersion:
|
||||
cc\n\nwpwEAQEKAAYFAmklS/wACgkQDjku08Oit1L9LQQAlfMN3MVlx+jui/KzrQTSl6AK\nA+FT/J0hc+wvVl+czktLDaZ7V1Kblpw+a5f2QGpw5ogFelNBc5nmy7d51Iy4O1in\nVHmvVrpPoBBZVZwYczfWVOvIPy2NOa9IyyZiuRA4AZlnP4/gDCQ27q3lDR+sLJSZ\no87Y/oFzBNLPbCJipjY=\n=R1Tl\n-----END
|
||||
PGP SIGNATURE-----"
|
||||
9
dm-cli/test.json
Normal file
9
dm-cli/test.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "a1b70576a9babd89",
|
||||
"action": "Feedback",
|
||||
"result": {
|
||||
"success": false,
|
||||
"message": "No data about the signer."
|
||||
},
|
||||
"payload": "PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgICA8bWV0YSBuYW1lPSJhdXRob3IiIGNvbnRlbnQ9IkJpdERlYWxzIFBheW1lbnQgU2VydmljZSI+CjwvaGVhZD4KPGJvZHk+CjxwcmU+SGVsbG8hCgpTb3JyeSwgc29tZXRoaW5nIHdlbnQgd3JvbmcgYW5kIGxlZCB0byBhbiBlcnJvcjoKCjxmb250IGNvbG9yPSIjQzAzOTJCIj48Yj5ObyBkYXRhIGFib3V0IHRoZSBzaWduZXIuPC9iPjwvZm9udD4KCi0tLS0tClRoYW5rIHlvdSwKQml0RGVhbHMuPC9wcmU+CjwvYm9keT4KPC9odG1sPgo="
|
||||
}
|
||||
Reference in New Issue
Block a user