Commit fc8219b9 by xmy

Merge remote-tracking branch 'origin/master'

parents bdf8108a 661e2cd8
...@@ -65,7 +65,7 @@ class Smscode ...@@ -65,7 +65,7 @@ class Smscode
); );
$response = $alisms->send($mobile); $response = $alisms->send($mobile);
if ($response->Code == 'OK') { 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分钟 $result = cache()->set($key, $vdata, 300); // 验证码有效期5分钟
if (!$result) { if (!$result) {
return '验证码存储失败'; 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