$state = $this->con->prepare("SELECT salt FROM Login WHERE user = ?");
$state->bind_param("s", $this->SanatizeString($this->GetValue('salt')));
$state->execute();
$result = $state->get_result();
$row = $result->fetch_assoc();
$salt = $row['salt'];
echo $this->Crypto(json_encode(array("response" => $salt), false);
这是我在脚本中执行的操作,以返回盐。 并在应用程序中即时通讯
salt = result["response"].get<std::string>().c_str();
但是json给了我一个奇怪的错误