This commit is contained in:
aozhiwei 2019-03-30 13:41:13 +08:00
parent c6156418dd
commit 3c28297fdd
2 changed files with 8 additions and 6 deletions

View File

@ -265,7 +265,7 @@ bool App::HasTask()
return true;
}
}
return false;
return OrderMgr::Instance()->HasTask();
}
void App::DispatchMsg()

View File

@ -8,9 +8,6 @@
#include "framework/cpp/utils.h"
#include "framework/cpp/httpclientpool.h"
#include <a8/mutable_xobject.h>
#if 0
#include "DBSListener.h"
#endif
struct AddOrderNode
{
@ -279,6 +276,7 @@ int OrderMgr::AddReissue(const std::string& orderid)
bool OrderMgr::WaitForReissueFinished(int seqid, int& result, int seconds)
{
return false;
}
bool OrderMgr::WaitForPayNotifyFinished(int seqid, int& result, int seconds)
@ -411,7 +409,9 @@ int OrderMgr::ProcOrderNotify(PayNotifyNode* node)
return 4;
}
#if 0
#if 1
return 0;
#else
int ret = query_->ExecQuery("SELECT orderid, itemid, roleid, rolename, price, sp_pay_result, serverid "
"FROM orderinfo WHERE orderid='%s' and sp_confirm_time=0;",
{ node->orderid});
@ -476,7 +476,9 @@ int OrderMgr::ContinueSubscriptions(PayNotifyNode* node)
int OrderMgr::ProcIosPayOrderNotify(PayNotifyNode* node)
{
#if 0
#if 1
return 0;
#else
Template::RechargeCard *cardtpl = g_configtable->GetRechargeCard(node->itemid);
if (!cardtpl) {
return 4;