From 55b196ea2e28a8d859c85326f2147a4f7b7196de Mon Sep 17 00:00:00 2001
From: zuojincheng <lf_zuo@163.com>
Date: 星期四, 10 四月 2025 10:58:32 +0800
Subject: [PATCH] feat(general): 新增开卡信息保存功能并优化界面布局- 新增 CardRegistrationBean 数据模型用于保存开卡信息 - 在数据库中添加 card_registration 表用于存储开卡记录 - 优化 NewCard2Activity 界面布局,调整样式和间距 - 添加协程支持,实现异步保存开卡信息到数据库 - 更新颜色配置,统一使用新加的 base_blue_bg 和 base_green_bg颜色
---
easysocket/src/main/java/com/easysocket/connection/iowork/EasyWriter.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/easysocket/src/main/java/com/easysocket/connection/iowork/EasyWriter.java b/easysocket/src/main/java/com/easysocket/connection/iowork/EasyWriter.java
index 554a06d..9634e16 100644
--- a/easysocket/src/main/java/com/easysocket/connection/iowork/EasyWriter.java
+++ b/easysocket/src/main/java/com/easysocket/connection/iowork/EasyWriter.java
@@ -4,6 +4,7 @@
import com.easysocket.interfaces.conn.IConnectionManager;
import com.easysocket.interfaces.conn.ISocketActionDispatch;
import com.easysocket.interfaces.io.IWriter;
+import com.easysocket.utils.HexUtil;
import com.easysocket.utils.LogUtil;
import java.io.IOException;
@@ -92,8 +93,8 @@
@Override
public void write(byte[] sendBytes) throws IOException {
if (sendBytes != null) {
- LogUtil.d("Socket鍙戦�佹暟鎹甋tring-->" + new String(sendBytes, Charset.forName("utf-8")));
- LogUtil.d("Socket鍙戦�佹暟鎹産yte[]-->" + Arrays.toString(sendBytes));
+ LogUtil.d("EasyWriter--Socket鍙戦�佹暟鎹甋tring-->" + HexUtil.bytesToHex(sendBytes));
+ LogUtil.d("EasyWriter--Socket鍙戦�佹暟鎹産yte[]-->" + Arrays.toString(sendBytes));
int packageSize = socketOptions.getMaxWriteBytes(); // 姣忔鍙互鍙戦�佺殑鏈�澶ф暟鎹�
int remainingCount = sendBytes.length;
ByteBuffer writeBuf = ByteBuffer.allocate(packageSize);
--
Gitblit v1.8.0