Commit 39b9b3aa authored by wangzhengwen's avatar wangzhengwen

sms cahce

parent 1b86245d
......@@ -247,7 +247,7 @@ class SendSms
// 5. 处理结果
if ($result['Code'] === 'OK') {
// 成功发送后更新缓存
cache($cacheKey, ['time' => $time]);
cache($cacheKey, ['time' => $time],3600);
// 存储验证码,有效期与发送间隔相同
$verificationKey = self::TOKEN_PREFIX . $mobile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment