From b38d9b8e402f36c1936264321810da6ce9d883a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=90?= Date: Fri, 6 Jun 2025 14:04:36 +0800 Subject: [PATCH] =?UTF-8?q?test(kami):=20=E6=B5=8B=E8=AF=95=E8=A7=A3?= =?UTF-8?q?=E9=94=81=20JC=20=E5=8D=A1=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在解锁卡密的过程中添加日志记录,以便调试和追踪 - 将响应数据从 GBK 编码转换为 UTF-8 编码,确保兼容性 --- app/channel/service/system/HyJk2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/channel/service/system/HyJk2.php b/app/channel/service/system/HyJk2.php index 65ad18e..c40add5 100644 --- a/app/channel/service/system/HyJk2.php +++ b/app/channel/service/system/HyJk2.php @@ -437,8 +437,11 @@ class HyJk2 extends Core $request['sign'] = $this->_sign($request, array('agent_id', 'card_data', 'card_style', 'lock_amt_fen', 'lock_type', 'time_stamp')); $url = $this->host.'UCard/UCardJPointLock.aspx'; $response = http_get($url,$request); + $response = iconv('GBK', 'UTF-8', $response); + Log::write('kami', 'test_unlock_jc', $request); + Log::write('kami', 'test_unlock_jc', $response); $pairs = explode('&', $response); $array = [];