Close #18
This commit is contained in:
2
dm-cli/.vscode/launch.json
vendored
2
dm-cli/.vscode/launch.json
vendored
@@ -22,7 +22,7 @@
|
|||||||
"https://testnet-dm2.bitdeals.org",
|
"https://testnet-dm2.bitdeals.org",
|
||||||
"--debug",
|
"--debug",
|
||||||
"deal",
|
"deal",
|
||||||
"negative",
|
"cancel",
|
||||||
"-m",
|
"-m",
|
||||||
"message_text",
|
"message_text",
|
||||||
"-s",
|
"-s",
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ int Deals::Cancel()
|
|||||||
string result = ExecCommand(data.c_str());
|
string result = ExecCommand(data.c_str());
|
||||||
if (result.length() == 0)
|
if (result.length() == 0)
|
||||||
{
|
{
|
||||||
return NoResponse("");
|
return NoResponse(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
nlohmann::json jsonData = nlohmann::json::parse(result);
|
nlohmann::json jsonData = nlohmann::json::parse(result);
|
||||||
@@ -558,7 +558,7 @@ int Deals::Cancel()
|
|||||||
|
|
||||||
string jsf = deal.dump();
|
string jsf = deal.dump();
|
||||||
jsf = ReplaceAll(jsf, "\"", "\\\"");
|
jsf = ReplaceAll(jsf, "\"", "\\\"");
|
||||||
data = "curl -s --location'";
|
data = "curl -s --location '";
|
||||||
data.append(address);
|
data.append(address);
|
||||||
data.append("/api/v1/deal/cancel' --header 'Content-Type: application/json' ");
|
data.append("/api/v1/deal/cancel' --header 'Content-Type: application/json' ");
|
||||||
data.append("--data '");
|
data.append("--data '");
|
||||||
|
|||||||
Reference in New Issue
Block a user