This commit is contained in:
Pig Fang 2019-12-25 16:11:13 +08:00
parent ad1201b226
commit 10d0957d66

View File

@ -376,9 +376,9 @@ class AdminController extends Controller
if (option('enable_redis')) {
try {
Redis::ping();
$redis->addMessage(trans('options.redis.connect.success'), 'success');
$redis->addAlert(trans('options.redis.connect.success'), 'success');
} catch (\Exception $e) {
$redis->addMessage(
$redis->addAlert(
trans('options.redis.connect.failed', ['msg' => $e->getMessage()]),
'danger'
);