|
@@ -178,7 +178,7 @@ class Admin extends BaseController {
|
|
|
'uniqueKey|唯一码' => 'require'
|
|
|
];
|
|
|
Until::check($rule, $input);
|
|
|
- if( strtolower($input['code']) != strtolower(Cache::get($input['uniqueKey']))) {
|
|
|
+ if( strtolower($input['code']) != strtolower((string)Cache::get($input['uniqueKey']))) {
|
|
|
// 验证失败
|
|
|
throw new ApiException('验证码错误');
|
|
|
}
|