# 2、验证验证码
命令字 : plg_cmd_checked_codes
### 请求参数
| type | 1邮箱2手机号 |
| --- | --- |
| account | 手机号或者邮箱 |
| smsCode| 验证码 |
| countryCode | 区号 |
```
$verifyInfo = FresnsVerifyCodes::where($where)->where('expired_at','>',date('Y-m-d H:i:s'))->first();
if($verifyInfo){
FresnsVerifyCodes::where('id',$verifyInfo['id'])->update(['is_enable'=>0]);
return$this->pluginSuccess();
}else{
return$this->pluginError(FresnsCode::CODE_FAIL,'验证码不正确或验证码已过期');
}
```