1
This commit is contained in:
parent
98daf72df4
commit
a431c927a1
@ -65,8 +65,6 @@ class ShopGoods
|
|||||||
array_push($result, $goodsIds[$i]);
|
array_push($result, $goodsIds[$i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error_log(1111);
|
|
||||||
error_log(json_encode($result));
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ class ShopService {
|
|||||||
$key = 'shop.daily.shop:' . myself()->_getAccountId();
|
$key = 'shop.daily.shop:' . myself()->_getAccountId();
|
||||||
$data = $r->get($key);
|
$data = $r->get($key);
|
||||||
if (empty($data)) {
|
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));
|
$data = mt\ShopGoods::getRandDailyHeroGoodsIds(mt\Shop::DAILY_HERO_SHOP, min(50, $num));
|
||||||
$r->setPx($key, json_encode($data), 1000 * 3600 * 24);
|
$r->setPx($key, json_encode($data), 1000 * 3600 * 24);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user