Restrict(); if($cacheResult === false) throw new Exception('您今天的报名次数已超过限制'); } }