1
This commit is contained in:
parent
1e6b6a9714
commit
f4a7878200
9
webapp/services/EventService.php
Normal file
9
webapp/services/EventService.php
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class EventService {
|
||||||
|
|
||||||
|
public static function mallConsume($accountId, $currencyName, $val)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -5,6 +5,7 @@ namespace services;
|
|||||||
require_once('ShopAddItemService.php');
|
require_once('ShopAddItemService.php');
|
||||||
|
|
||||||
require_once('models/Mall.php');
|
require_once('models/Mall.php');
|
||||||
|
require_once('services/EventService.php');
|
||||||
|
|
||||||
require_once('services/LogService.php');
|
require_once('services/LogService.php');
|
||||||
require_once ('services/callback/common/SignatureService.php');
|
require_once ('services/callback/common/SignatureService.php');
|
||||||
@ -13,6 +14,8 @@ use phpcommon\SqlHelper;
|
|||||||
|
|
||||||
use models\Mall;
|
use models\Mall;
|
||||||
|
|
||||||
|
use services\EventService;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
order_id
|
order_id
|
||||||
*/
|
*/
|
||||||
@ -70,7 +73,6 @@ class GameItemMarketBuyOk {
|
|||||||
array('account_id' => $accountId),
|
array('account_id' => $accountId),
|
||||||
$event);
|
$event);
|
||||||
}
|
}
|
||||||
$currencyName = $orderDb['currency_name'];
|
|
||||||
$itemService = new ShopAddItemService();
|
$itemService = new ShopAddItemService();
|
||||||
$itemService->addItemByAccountId($accountId, $itemId, $itemNum);
|
$itemService->addItemByAccountId($accountId, $itemId, $itemNum);
|
||||||
myself()->_addLogEx($accountId, "mallBuyOk", "end", array(
|
myself()->_addLogEx($accountId, "mallBuyOk", "end", array(
|
||||||
@ -81,7 +83,8 @@ class GameItemMarketBuyOk {
|
|||||||
)),
|
)),
|
||||||
'param3' => json_encode($orderDb),
|
'param3' => json_encode($orderDb),
|
||||||
));
|
));
|
||||||
|
$currencyName = $orderDb['currency_name'];
|
||||||
|
EventService::mallConsume($accountId, $currencyName, $price);
|
||||||
myself()->_rspOk();
|
myself()->_rspOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user