@@ -32,8 +32,10 @@ ServerConfig::ServerConfig():
3232gameUpdateHertz_ (10 ),
3333billingSystemAddr_ (),
3434billingSystem_type_ (" " ),
35- billingSystem_thirdpartyServiceAddr_ (" " ),
36- billingSystem_thirdpartyServicePort_ (80 )
35+ billingSystem_thirdpartyAccountServiceAddr_ (" " ),
36+ billingSystem_thirdpartyAccountServicePort_ (80 ),
37+ billingSystem_thirdpartyChargeServiceAddr_ (" " ),
38+ billingSystem_thirdpartyChargeServicePort_ (80 )
3739{
3840}
3941
@@ -164,17 +166,31 @@ bool ServerConfig::loadConfig(std::string fileName)
164166 }
165167
166168 childnode = NULL ;
167- childnode = xml->enterNode (rootNode, " thirdpartyService_addr " );
169+ childnode = xml->enterNode (rootNode, " thirdpartyAccountService_addr " );
168170 if (childnode)
169171 {
170- billingSystem_thirdpartyServiceAddr_ = xml->getValStr (childnode);
172+ billingSystem_thirdpartyAccountServiceAddr_ = xml->getValStr (childnode);
171173 }
172174
173175 childnode = NULL ;
174- childnode = xml->enterNode (rootNode, " thirdpartyService_port " );
176+ childnode = xml->enterNode (rootNode, " thirdpartyAccountService_port " );
175177 if (childnode)
176178 {
177- billingSystem_thirdpartyServicePort_ = xml->getValInt (childnode);
179+ billingSystem_thirdpartyAccountServicePort_ = xml->getValInt (childnode);
180+ }
181+
182+ childnode = NULL ;
183+ childnode = xml->enterNode (rootNode, " thirdpartyChargeService_addr" );
184+ if (childnode)
185+ {
186+ billingSystem_thirdpartyChargeServiceAddr_ = xml->getValStr (childnode);
187+ }
188+
189+ childnode = NULL ;
190+ childnode = xml->enterNode (rootNode, " thirdpartyChargeService_port" );
191+ if (childnode)
192+ {
193+ billingSystem_thirdpartyChargeServicePort_ = xml->getValInt (childnode);
178194 }
179195 }
180196
0 commit comments