case Operation::DeviceAuthen:
{
    std::string token = root["body"]["token"].asString();
    std::string secretKey = root["body"]["secretKey"].asString();
    std::string resultMesg = root["head"]["resMessage"].asString();
    CMyINI *myINI = new CMyINI();
    myINI->SetValue("setting", "token", token);
    myINI->SetValue("setting", "secretKey", secretKey);
    myINI->WriteINI(GetProgramDir() + "\\UserInfo.data");
    delete myINI;
}

如上代码,只需要在case后加{}即可。

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-01-27
  • 2021-05-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-07-01
  • 2021-09-29
  • 2021-08-05
相关资源
相似解决方案