test(kami): 测试解锁 JC 卡密

- 在解锁卡密的过程中添加日志记录,以便调试和追踪
- 将响应数据从 GBK 编码转换为 UTF-8 编码,确保兼容性
This commit is contained in:
2025-06-06 14:04:36 +08:00
parent d59f1b9346
commit b38d9b8e40

View File

@ -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 = [];