weizong song 2 years ago
parent baeb2b67b7
commit 51c8020319

@ -7,6 +7,7 @@ use Carbon\Carbon;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
use Tymon\JWTAuth\Facades\JWTAuth; use Tymon\JWTAuth\Facades\JWTAuth;
class AuthController extends Controller class AuthController extends Controller
@ -213,6 +214,9 @@ class AuthController extends Controller
$aesIV = base64_decode($iv); $aesIV = base64_decode($iv);
$aesCipher = base64_decode($encryptedData); $aesCipher = base64_decode($encryptedData);
$result = openssl_decrypt($aesCipher, "AES-128-CBC", $aesKey, 1, $aesIV); $result = openssl_decrypt($aesCipher, "AES-128-CBC", $aesKey, 1, $aesIV);
Log::channel("get_mobile_by_openid")->log($result);
$dataObj = json_decode($result); $dataObj = json_decode($result);
if ($dataObj == NULL) { if ($dataObj == NULL) {

@ -66,6 +66,12 @@ return [
'days' => 14, 'days' => 14,
], ],
'get_mobile_by_openid' => [
'driver' => 'daily',
'path' => storage_path('logs/get_mobile_by_openid.log'),
'level' => 'debug',
],
'slack' => [ 'slack' => [
'driver' => 'slack', 'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'), 'url' => env('LOG_SLACK_WEBHOOK_URL'),

Loading…
Cancel
Save