This commit is contained in:
aozhiwei 2024-10-14 11:35:25 +08:00
parent 98daf72df4
commit a431c927a1
2 changed files with 1 additions and 3 deletions

View File

@ -65,8 +65,6 @@ class ShopGoods
array_push($result, $goodsIds[$i]);
}
}
error_log(1111);
error_log(json_encode($result));
return $result;
}

View File

@ -168,7 +168,7 @@ class ShopService {
$key = 'shop.daily.shop:' . myself()->_getAccountId();
$data = $r->get($key);
if (empty($data)) {
$num = myself()->_callMtStatic('Parameter', 'getByName', 'SHOP_TYPE2_SLOT');
$num = myself()->_callMtStatic('Parameter', 'getByName', 'SHOP_TYPE2_SLOT')['param_value'];
$data = mt\ShopGoods::getRandDailyHeroGoodsIds(mt\Shop::DAILY_HERO_SHOP, min(50, $num));
$r->setPx($key, json_encode($data), 1000 * 3600 * 24);
} else {