From c8d572ba27949b85d2c4173aa0c295eb82e475fb Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 19 Apr 2024 06:18:47 +0800 Subject: [PATCH] add user_id to task log --- themes/tajian/controller/FrontapiController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/tajian/controller/FrontapiController.php b/themes/tajian/controller/FrontapiController.php index 4cdd9ac..112c66f 100644 --- a/themes/tajian/controller/FrontapiController.php +++ b/themes/tajian/controller/FrontapiController.php @@ -208,6 +208,10 @@ Class FrontApiController extends SiteController { 'created' => time(), ); + if (!empty($config['multipleUserUriParse'])) { + $content['user'] = !empty(FSC::$app['user_id']) ? FSC::$app['user_id'] : ''; + } + fwrite($fp, json_encode($content) . "\n"); }catch(Exception $err) { $saved = false;