feat : add_staple_food

This commit is contained in:
2025-03-24 16:38:37 +08:00
parent f8584d3e1a
commit 7c64a6bc09
5 changed files with 41 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ trait CycleTrait
*/
protected function initTodayCycleId(): float|bool|Redis|int
{
$TodayCutOffTime = $this->configCache->getConfigValueByKey(ConfigCode::TODAY_CUT_OFF_TIME_KEY);
$TodayCutOffTime = $this->configCache->getConfigValueByKey(ConfigCode::START_OF_THE_NEW_CYCLE);
if (date('H:i:s') >= ($TodayCutOffTime)) {
$day = date('Y-m-d',strtotime('+1 day'));