...
This commit is contained in:
parent
0ba8a1f2fa
commit
0fcb61d966
@ -43,14 +43,17 @@ class BuyShopGoodsCbService
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$order_id = $order['order_id'];
|
||||||
$address = $order['address'];
|
$address = $order['address'];
|
||||||
$ext_data = $order['ext_data'];
|
// $ext_data = $order['ext_data'];
|
||||||
$goods_id = $order['item_id'];
|
$item_id = $order['item_id'];
|
||||||
$goods_num = $order['item_num'];
|
$item_num = $order['item_num'];
|
||||||
|
|
||||||
|
error_log("callback buynormal address: $address, order_id: $order_id, goods_id: $item_id, goods_num: $item_num");
|
||||||
|
|
||||||
$this->_addGoods($address, array(
|
$this->_addGoods($address, array(
|
||||||
'goods_id' => $goods_id,
|
'goods_id' => $item_id,
|
||||||
'goods_num' => $goods_num,
|
'goods_num' => $item_num,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,6 +72,8 @@ class BuyShopGoodsCbService
|
|||||||
$grid = $ext_data['grid'];
|
$grid = $ext_data['grid'];
|
||||||
$count = $ext_data['count'];
|
$count = $ext_data['count'];
|
||||||
|
|
||||||
|
error_log("callback buyDailySelection address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count");
|
||||||
|
|
||||||
$conn = $self->_getMysql($address);
|
$conn = $self->_getMysql($address);
|
||||||
$sql = "SELECT count_$grid FROM t_shop_dailyselection WHERE idx = $idx";
|
$sql = "SELECT count_$grid FROM t_shop_dailyselection WHERE idx = $idx";
|
||||||
$chk = $conn->execQuery($sql);
|
$chk = $conn->execQuery($sql);
|
||||||
@ -76,7 +81,7 @@ class BuyShopGoodsCbService
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($chk[0]['count_' . $grid] < $count) {
|
if ($chk[0]['count_' . $grid] < $count) {
|
||||||
error_log("BuyShopGoodsCbService::_buyDailySelection() count not enough, address: $address, order_id: $order_id, idx: $idx, grid: $grid, count: $count");
|
error_log("BuyShopGoodsCbService::_buyDailySelection() count not enough, address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +94,7 @@ class BuyShopGoodsCbService
|
|||||||
'goods_num' => $item_num,
|
'goods_num' => $item_num,
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
error_log("BuyShopGoodsCbService::_buyDailySelection() decDailySelectionItem failed, address: $address, order_id: $order_id, idx: $idx, grid: $grid, count: $count");
|
error_log("BuyShopGoodsCbService::_buyDailySelection() decDailySelectionItem failed, address: $address, order_id: $order_id, item_id: $item_id, item_num: $item_num, idx: $idx, grid: $grid, count: $count");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user