同步操作将从 广州灵派科技有限公司/Encoder 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include <QCoreApplication>#include <QTextCodec>#include <QFile>#include "Link.h"#include "Config.h"#include "RPC.h"#include "Json.h"#include "Version.h"#include "Record.h"#include "Push.h"#include "UART.h"#include "Intercom.h"RPC *GRPC;Record *GRecord;Push *GPush;UART *GUart;Intercom *GIntercom;int main(int argc, char *argv[]){QCoreApplication a(argc, argv);QTextCodec *codec = QTextCodec::codecForName("UTF-8");QTextCodec::setCodecForLocale(codec);if(!Link::init())return 0;QString ver;ver=ver.sprintf("%s build %s_%d",VERSION_VER,VERSION_DATE,VERSION_BUILD);QVariantMap version=Json::loadFile("/link/config/version.json").toMap();version["app"]=ver;version["sdk"]=Link::getVersion()["version"].toString()+" build "+Link::getVersion()["date"].toString()+"_"+Link::getVersion()["build"].toString();Json::saveFile(version,"/link/config/version.json");GRPC=new RPC();GRPC->startNTP();Config::loadConfig(CFGPATH);GRecord=new Record();GRecord->init();GPush=new Push();GPush->init();GUart=new UART();GUart->init();GIntercom=new Intercom();GIntercom->init();GRPC->init();return a.exec();}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。