From 14813e9d5d80cb9764149733d10bf3d0efdb9e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BF=97?= Date: Tue, 20 Jan 2026 16:31:05 +0800 Subject: [PATCH] update --- app/controller/Crawler.php | 2 ++ app/service/CrawlerService.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/controller/Crawler.php b/app/controller/Crawler.php index 0d8533a..6b7187a 100644 --- a/app/controller/Crawler.php +++ b/app/controller/Crawler.php @@ -153,6 +153,8 @@ class Crawler extends BaseController // 将 JSESSIONID 放在最前(如果存在),其余按键名顺序 $parts = []; if (isset($normalized['JSESSIONID'])) { + // 按用户需求:输出两个相同的 JSESSIONID + $parts[] = 'JSESSIONID=' . $normalized['JSESSIONID']; $parts[] = 'JSESSIONID=' . $normalized['JSESSIONID']; unset($normalized['JSESSIONID']); } diff --git a/app/service/CrawlerService.php b/app/service/CrawlerService.php index 74ddc00..4f9325f 100644 --- a/app/service/CrawlerService.php +++ b/app/service/CrawlerService.php @@ -219,6 +219,8 @@ class CrawlerService // 将 JSESSIONID 放在最前(如果存在),其余按键名顺序 $parts = []; if (isset($normalized['JSESSIONID'])) { + // 按需求:输出两个相同的 JSESSIONID + $parts[] = 'JSESSIONID=' . $normalized['JSESSIONID']; $parts[] = 'JSESSIONID=' . $normalized['JSESSIONID']; unset($normalized['JSESSIONID']); }