验证码字段

This commit is contained in:
邓皓元 2018-12-11 15:36:03 +08:00
parent 14106a4ec7
commit 7507523acf

View File

@ -31,8 +31,8 @@ class SmsController extends Controller
$mobile = $this->request->get('mobile');
if ($this->request->isMethod('post')) {
$code = $this->request->get('code');
$this->smsService->verifyCode($mobile, $code);
$verifyCode = $this->request->get('verify_code');
$this->smsService->verifyCode($mobile, $verifyCode);
return res(true, '验证码正确');
}