This commit is contained in:
aozhiwei 2023-07-31 11:15:26 +08:00
parent ee56311842
commit 362d1897fb

View File

@ -59,8 +59,7 @@ class ShopService {
break; break;
} }
$goodsId = $goodsMeta['goods_id']; $itemMeta = mt\Item::get($goodsMeta['item_id']);
$itemMeta = mt\Item::get($goodsId);
if ($itemMeta) { if ($itemMeta) {
// 如果是皮肤,判断是否已经拥有,如果已经拥有,不能购买 // 如果是皮肤,判断是否已经拥有,如果已经拥有,不能购买
if ($itemMeta['type'] == mt\Item::HERO_SKIN_TYPE) { if ($itemMeta['type'] == mt\Item::HERO_SKIN_TYPE) {
@ -72,9 +71,8 @@ class ShopService {
$goods['bought_times'] = 0; $goods['bought_times'] = 0;
} }
} }
} else { } else if ($goodsMeta['goods_id'] != 9999){
// error !!!!!! error_log('item not found:' . json_encode($goodsMeta));
error_log('item not found:' . $goodsId);
} }
if (!empty($goods['free_type'])) { if (!empty($goods['free_type'])) {