分页: 1 / 1

将json结果传到httpserver,并保存到DB

发表于 : 2025-07-11 11:26
帆布配牛仔
各位大佬,在.c文档中添加了“str = json_to_string(root);
ret = post_json_respond(url+"/yinhe/diagnose/sys_monitor/route",
str, respond);
cout << "#$1" << fast_writer.write(root) << endl;”代码,完成后如何将json结果传到httpserver,并保存到DB(数据库用的mysql),是把修改的文件替换源文件然后push上去再打开mysql吗,打开mysql再怎样操作呢,求解。。。。