fix(websocket): 移除重复的seq字段并统一在命令中添加

在websocket命令构造中统一添加seq字段,避免在调用处重复设置。移除ckbox页面中重复的seq设置,保持代码一致性。
This commit is contained in:
超级老白兔
2025-09-02 14:26:44 +08:00
parent 4fd8c1f5bf
commit b3f6d4f6e7
2 changed files with 1 additions and 1 deletions

View File

@@ -37,7 +37,6 @@ const CkboxPage: React.FC = () => {
setInterval(() => {
sendCommand("CmdRequestWechatAccountsAliveStatus", {
wechatAccountIds: kfUserList.map(v => v.id),
seq: +new Date(),
});
}, 10 * 1000);
}

View File

@@ -233,6 +233,7 @@ export const useWebSocketStore = createPersistStore<WebSocketState>(
const command = {
cmdType,
...data,
seq: +new Date(),
};
try {