From 51c802031909d02e1fd72474a309fbf834cc91ec Mon Sep 17 00:00:00 2001 From: weizong song Date: Thu, 9 May 2024 13:25:32 +0800 Subject: [PATCH] up --- app/Http/Controllers/Customer/AuthController.php | 4 ++++ config/logging.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/app/Http/Controllers/Customer/AuthController.php b/app/Http/Controllers/Customer/AuthController.php index 596fcb1..3594b73 100644 --- a/app/Http/Controllers/Customer/AuthController.php +++ b/app/Http/Controllers/Customer/AuthController.php @@ -7,6 +7,7 @@ use Carbon\Carbon; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Facades\Log; use Tymon\JWTAuth\Facades\JWTAuth; class AuthController extends Controller @@ -213,6 +214,9 @@ class AuthController extends Controller $aesIV = base64_decode($iv); $aesCipher = base64_decode($encryptedData); $result = openssl_decrypt($aesCipher, "AES-128-CBC", $aesKey, 1, $aesIV); + + Log::channel("get_mobile_by_openid")->log($result); + $dataObj = json_decode($result); if ($dataObj == NULL) { diff --git a/config/logging.php b/config/logging.php index 7259cad..faeafeb 100644 --- a/config/logging.php +++ b/config/logging.php @@ -66,6 +66,12 @@ return [ 'days' => 14, ], + 'get_mobile_by_openid' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/get_mobile_by_openid.log'), + 'level' => 'debug', + ], + 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'),