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