wangzhengquan
2020-06-12 114c53f58d535d9fab158ed669646a0aae5f078a
service/netdisk_service.c
@@ -96,18 +96,30 @@
  }
 
  Json::Value response;
  Json::Value payload;
  response["code"] = rv;
  response["msg"] = rmsg;
  // Json::Value response;
  // Json::Value payload;
  // response["code"] = rv;
  // response["msg"] = rmsg;
  // Json::Value filelist;
  // for(std::string f : files) {
  //   filelist.append(f);
  // }
  // payload["filelist"] = filelist;
  // response["payload"] = payload;
  Json::Value request;
  request["method"] = "downloadByTimeCallBack";
  Json::Value arguments;
  Json::Value filelist;
  for(std::string f : files) {
    filelist.append(f);
  }
  payload["filelist"] = filelist;
  response["payload"] = payload;
  std::string str = response.toStyledString();
  arguments["fileList"] = filelist;
  arguments["loginUUID"] = drequest.loginUUID;
  request["arguments"] = arguments;
  std::string str = request.toStyledString();
  std::cout << "download finished, call back" << std::endl;
  std::cout << str << std::endl;