From 34fa1ce68d2819e0094afb7fa485f6fdaa729059 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Nov 2019 18:22:38 +0800 Subject: [PATCH] update --- app/Http/Controllers/Passport/CommController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Passport/CommController.php b/app/Http/Controllers/Passport/CommController.php index 499364e3..68695edf 100644 --- a/app/Http/Controllers/Passport/CommController.php +++ b/app/Http/Controllers/Passport/CommController.php @@ -13,8 +13,10 @@ class CommController extends Controller { public function config () { return response([ - 'isEmailVerify' => (int)config('v2board.email_verify', 0) ? 1 : 0, - 'isInviteForce' => (int)config('v2board.invite_force', 0) ? 1 : 0, + 'data' => [ + 'isEmailVerify' => (int)config('v2board.email_verify', 0) ? 1 : 0, + 'isInviteForce' => (int)config('v2board.invite_force', 0) ? 1 : 0, + ] ]); }