From df201574d9c52dabcf28bd952772da09359042a9 Mon Sep 17 00:00:00 2001 From: yanzai Date: Wed, 3 Jul 2024 17:18:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Http/Middleware/XmlLog.php | 2 ++ Laravel/app/Services/LogService.php | 1 + 2 files changed, 3 insertions(+) diff --git a/Laravel/app/Http/Middleware/XmlLog.php b/Laravel/app/Http/Middleware/XmlLog.php index e4d9160..4e60ddc 100644 --- a/Laravel/app/Http/Middleware/XmlLog.php +++ b/Laravel/app/Http/Middleware/XmlLog.php @@ -18,6 +18,8 @@ class XmlLog */ public function handle(Request $request, Closure $next) { + date_default_timezone_set('PRC'); + // dd($request->getContent()); $routers=[ "接收申请单"=>'/api/v1/T/CreateEntrustRecordXml', diff --git a/Laravel/app/Services/LogService.php b/Laravel/app/Services/LogService.php index acc1b16..1cb6574 100644 --- a/Laravel/app/Services/LogService.php +++ b/Laravel/app/Services/LogService.php @@ -9,6 +9,7 @@ class LogService { public function RequestLog($arr,$id){ //记录请求日志 + date_default_timezone_set('PRC'); self::CheckTableName(); $table_name='zz_request_log_' . date('ym'); $response_data =isset($arr['response_data'])?self::JsonEncode($arr['response_data']):'';