Close #20 wrong date format fix
This commit is contained in:
14
dm-cli/.vscode/launch.json
vendored
14
dm-cli/.vscode/launch.json
vendored
@@ -2,6 +2,8 @@
|
|||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
// deal negative -m "feedback_message" -s "Hxhv4ewOOVGbydibNzdNxaWPDkFhDi0N3rdXtPVe5YtkfR2RECUG5KebcRCBmgN94t/NVYBOo/ft/FN1q6p42l8=" 2NAFmjLid526kjekoMiCm8nX5SxFCfk7jgC
|
||||||
|
// -m "feedback_message" -s "Hxhv4ewOOVGbydibNzdNxaWPDkFhDi0N3rdXtPVe5YtkfR2RECUG5KebcRCBmgN94t/NVYBOo/ft/FN1q6p42l8=" 2NAFmjLid526kjekoMiCm8nX5SxFCfk7jgC
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
@@ -12,11 +14,13 @@
|
|||||||
"args": [ "--address",
|
"args": [ "--address",
|
||||||
"https://testnet-dm2.bitdeals.org",
|
"https://testnet-dm2.bitdeals.org",
|
||||||
"--debug",
|
"--debug",
|
||||||
"account",
|
"deal",
|
||||||
"status",
|
"negative",
|
||||||
"-f",
|
"-m",
|
||||||
"n",
|
"feedback_message",
|
||||||
"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC"
|
"-s",
|
||||||
|
"Hxhv4ewOOVGbydibNzdNxaWPDkFhDi0N3rdXtPVe5YtkfR2RECUG5KebcRCBmgN94t/NVYBOo/ft/FN1q6p42l8=",
|
||||||
|
"2NAFmjLid526kjekoMiCm8nX5SxFCfk7jgC"
|
||||||
],
|
],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
|
|||||||
@@ -379,9 +379,13 @@ int Deals::Negative()
|
|||||||
sign = GetVal("-s", "--signature");
|
sign = GetVal("-s", "--signature");
|
||||||
}
|
}
|
||||||
|
|
||||||
deal["seller"]["signature"] = sign;
|
deal["customer"]["signature"] = sign;
|
||||||
deal["feedback"]["comments"] = message;
|
deal["feedback"]["comments"] = message;
|
||||||
|
|
||||||
|
deal["date"] = Replace(deal["date"], " UTC", "");
|
||||||
|
deal["feedback"]["leave_before"] = Replace(deal["feedback"]["leave_before"], " UTC", "");
|
||||||
|
deal["payment"]["until"] = Replace(deal["payment"]["until"], " UTC", "");
|
||||||
|
|
||||||
string jsf = deal.dump();
|
string jsf = deal.dump();
|
||||||
jsf = ReplaceAll(jsf, "\"", "\\\"");
|
jsf = ReplaceAll(jsf, "\"", "\\\"");
|
||||||
data = "curl -s -X POST \"";
|
data = "curl -s -X POST \"";
|
||||||
|
|||||||
Reference in New Issue
Block a user