Commit ae52de85 by 王召彬

存入详细的验证码信息

parent cce1eccc
......@@ -65,7 +65,7 @@ class Smscode
);
$response = $alisms->send($mobile);
if ($response->Code == 'OK') {
$vdata = sprintf("%d,%d,%d", $vcode, time(), $count);
$vdata = sprintf("%d,%d,%d,%d,%d", $vcode, time(), $count, $this->number, $mobile);
$result = cache()->set($key, $vdata, 300); // 验证码有效期5分钟
if (!$result) {
return '验证码存储失败';
......
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