Merge branch 'star' of git.kingsome.cn:server/game2006api into star
This commit is contained in:
commit
e9164064d0
File diff suppressed because it is too large
Load Diff
@ -132,11 +132,18 @@ class BuyShopGoodsCbService
|
|||||||
$itemService = new ShopAddItemService();
|
$itemService = new ShopAddItemService();
|
||||||
$item_id = $goods['goods_id'];
|
$item_id = $goods['goods_id'];
|
||||||
$goods_num = $goods['goods_num'];
|
$goods_num = $goods['goods_num'];
|
||||||
$id = $goods['id'];
|
|
||||||
|
$id = null;
|
||||||
|
if ($goods['id']) {
|
||||||
|
$id = $goods['id'];
|
||||||
|
}
|
||||||
|
|
||||||
error_log(json_encode($goods));
|
error_log(json_encode($goods));
|
||||||
error_log('_addGoods ' . $address . ' item_id ' . $item_id . ' goods_num ' . $goods_num . ' id ' . $id);
|
error_log('_addGoods ' . $address . ' item_id ' . $item_id . ' goods_num ' . $goods_num . ' id ' . $id);
|
||||||
$itemService->addItem($address, $item_id, $goods_num);
|
$itemService->addItem($address, $item_id, $goods_num);
|
||||||
ShopBuyRecord::addWithAddress($address, $id, $goods_num);
|
if ($id) {
|
||||||
|
ShopBuyRecord::addWithAddress($address, $id, $goods_num);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getAccountId($address){
|
private function getAccountId($address){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user