...
This commit is contained in:
parent
32ebc4bde5
commit
36e4d72449
@ -18,15 +18,44 @@ class BuyShopGoodsCbService
|
|||||||
{
|
{
|
||||||
public function process($order)
|
public function process($order)
|
||||||
{
|
{
|
||||||
|
$itemService = new ShopAddItemService();
|
||||||
switch ($order['order_type']) {
|
switch ($order['order_type']) {
|
||||||
case V_ORDER_TYPE_BUY_SHOP_GOODS: {
|
case V_ORDER_TYPE_BUY_SHOP_GOODS: {
|
||||||
$ext_data = json_decode($order['ext_data'], true);
|
$ext_data = json_decode($order['ext_data'], true);
|
||||||
switch ($ext_data['mode']) {
|
switch ($ext_data['mode']) {
|
||||||
case SHOP_BUY_MODE_NORMAL:
|
case SHOP_BUY_MODE_NORMAL:
|
||||||
|
$itemService->addGameLog($order['address'], "shopBuyNormal", "begin", array(
|
||||||
|
'param1' => $order['order_id'],
|
||||||
|
'param2' => json_encode(array(
|
||||||
|
'item_id' => $order['item_id'],
|
||||||
|
'item_num' => $order['item_num'],
|
||||||
|
)),
|
||||||
|
));
|
||||||
$this->_buyNormal($order, $ext_data);
|
$this->_buyNormal($order, $ext_data);
|
||||||
|
$itemService->addGameLog($order['address'], "shopBuyNormal", "end", array(
|
||||||
|
'param1' => $order['order_id'],
|
||||||
|
'param2' => json_encode(array(
|
||||||
|
'item_id' => $order['item_id'],
|
||||||
|
'item_num' => $order['item_num'],
|
||||||
|
)),
|
||||||
|
));
|
||||||
break;
|
break;
|
||||||
case SHOP_BUY_MODE_DAILY_SELECTION:
|
case SHOP_BUY_MODE_DAILY_SELECTION:
|
||||||
|
$itemService->addGameLog($order['address'], "shopBuyDailySelection", "begin", array(
|
||||||
|
'param1' => $order['order_id'],
|
||||||
|
'param2' => json_encode(array(
|
||||||
|
'item_id' => $order['item_id'],
|
||||||
|
'item_num' => $order['item_num'],
|
||||||
|
)),
|
||||||
|
));
|
||||||
$this->_buyDailySelection($order, $ext_data);
|
$this->_buyDailySelection($order, $ext_data);
|
||||||
|
$itemService->addGameLog($order['address'], "shopBuyDailySelection", "end", array(
|
||||||
|
'param1' => $order['order_id'],
|
||||||
|
'param2' => json_encode(array(
|
||||||
|
'item_id' => $order['item_id'],
|
||||||
|
'item_num' => $order['item_num'],
|
||||||
|
)),
|
||||||
|
));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user