This commit is contained in:
Tokumeikoi 2020-03-13 14:37:15 +08:00
parent 6e7da97fcd
commit 8d10b52a35

View File

@ -9,7 +9,7 @@ class CacheKey
'LAST_SEND_EMAIL_VERIFY_TIMESTAMP' => '最后一次发送邮箱验证码时间'
];
public static function get(string $key, $uniqueValue)
public static function get(string $key, $uniqueValue):string
{
if (!in_array($key, array_keys(self::KEYS))) {
abort(500, 'key is not in cache key list');