Commit b4b4a9c2 by NitefullWind

1. 修改唤起登录的逻辑。

parent 181e0c38
...@@ -30,9 +30,6 @@ int FMPHomePrivate::Init() ...@@ -30,9 +30,6 @@ int FMPHomePrivate::Init()
FMPStartEventHandler* handler = new FMPStartEventHandler(q->_ctx, q); FMPStartEventHandler* handler = new FMPStartEventHandler(q->_ctx, q);
if(login() != FMP_SUCCESS) {
return FMP_FAILURE;
}
_navWindow->show(); _navWindow->show();
connect(_navWindow, SIGNAL(menuBtnClicked(QString)), this, SLOT(onMenuBtnClicked(QString))); connect(_navWindow, SIGNAL(menuBtnClicked(QString)), this, SLOT(onMenuBtnClicked(QString)));
...@@ -81,6 +78,12 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName) ...@@ -81,6 +78,12 @@ void FMPHomePrivate::onMenuBtnClicked(QString btnName)
Q_Q(FMPHome); Q_Q(FMPHome);
FMP_DEBUG_CTX(q->_ctx) << "Menu clicked: " << btnName; FMP_DEBUG_CTX(q->_ctx) << "Menu clicked: " << btnName;
if(!_isLogined && btnName!="tool") {
if(login() != FMP_SUCCESS) {
return;
}
}
if(btnName == "payment") { if(btnName == "payment") {
FMPePayInterface *e = q->GetService<FMPePayInterface>(q->_ctx); FMPePayInterface *e = q->GetService<FMPePayInterface>(q->_ctx);
e->StartService(); e->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