Commit 8c80c808 by NitefullWind

1. 登录后启动外卖。

parent f0e1ed5f
......@@ -74,17 +74,15 @@ int FMPHomePrivate::login()
if(loginWnd.isLogined()) {
_isLogined = true;
_userName = loginWnd.userName();
return FMP_SUCCESS;
} else {
_isLogined = false;
return FMP_FAILURE;
}
#else
_isLogining = false;
_isLogined = true;
_userName = "";
return FMP_SUCCESS;
#endif
return (_isLogined ? FMP_SUCCESS : FMP_FAILURE);
}
int FMPHomePrivate::blink(FMPluginInterface *plugin, const QString &image)
......@@ -130,6 +128,12 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
if(!_isLogined && btnName!="tool") {
if(login() != FMP_SUCCESS) {
return;
} else if(btnName != "takeout") {
// 启动外卖
FMPBaseInterface *svc = q->GetService<FMPTakeoutInterface>(q->_ctx);
if(svc) {
svc->StartService();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment