This commit is contained in:
aozhiwei 2019-03-30 13:43:19 +08:00
parent 3c28297fdd
commit f0f55569b3

View File

@ -19,30 +19,20 @@ struct AddOrderNode
struct PayNotifyNode struct PayNotifyNode
{ {
int seqid; int seqid = 0;
int pay_type;//0:normal 1:ios 2:jinqi int pay_type = 0;//0:normal 1:ios 2:jinqi
std::string accountid; std::string accountid;
std::string roleid; std::string roleid;
std::string rolename; std::string rolename;
int serverid; int serverid = 0;
int itemid; int itemid = 0;
std::string itemid_str; std::string itemid_str;
std::string orderid; std::string orderid;
std::string sp_orderid; std::string sp_orderid;
std::string sp_accountid; std::string sp_accountid;
double fee; double fee = 0.0f;
int payresult; int payresult = 0;
PayNotifyNode* next; PayNotifyNode* next = nullptr;
PayNotifyNode()
{
seqid = 0;
pay_type = 0;
serverid = 0;
itemid = 0;
payresult = 0;
next = NULL;
}
}; };
struct ReissueNode struct ReissueNode
@ -54,15 +44,6 @@ struct ReissueNode
void OrderMgr::Init() void OrderMgr::Init()
{ {
top_node_ = NULL;
bot_node_ = NULL;
work_node_ = NULL;
pay_notify_top_node_ = NULL;
pay_notify_bot_node_ = NULL;
pay_notify_work_node_ = NULL;
reissue_top_node_ = NULL;
reissue_bot_node_ = NULL;
reissue_work_node_ = NULL;
add_order_mutex_ = new std::mutex(); add_order_mutex_ = new std::mutex();
pay_notify_mutex_ = new std::mutex(); pay_notify_mutex_ = new std::mutex();
reissue_mutex_ = new std::mutex(); reissue_mutex_ = new std::mutex();
@ -83,11 +64,6 @@ void OrderMgr::Init()
JsonDataMgr::Instance()->GetMysqlConf()->At("passwd")->AsXValue(), JsonDataMgr::Instance()->GetMysqlConf()->At("passwd")->AsXValue(),
"paydb")); "paydb"));
f8::InitMysqlConnection(query_); f8::InitMysqlConnection(query_);
#if 0
DumpMysqlInfo(query_);
RegisterNetMsgHandler<OrderMgr, SSMPing>(g_dbsmsghandler, &OrderMgr::_SSMPing);
RegisterNetMsgHandler<OrderMgr, D2PPayNotifyACK>(g_dbsmsghandler, &OrderMgr::_D2PPayNotifyACK);
#endif
LoadPedingOrders(); LoadPedingOrders();
} }