current_count += $count; return $pityTime->save(); } /** * 重置保底计数 * * @param ItemPityTime $pityTime 保底计数模型 * @return bool */ public function resetCount(ItemPityTime $pityTime): bool { $pityTime->current_count = 0; return $pityTime->save(); } }