update 查询订单详情页时,检查订单状态

This commit is contained in:
2023-10-10 13:29:58 +08:00
parent 33bc29258b
commit 32ab518ca1
9 changed files with 37 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ public class NettyClient implements Runnable {
ChannelFuture future = b.connect(HOST, PORT).sync();
while (boo) {
num++;
future.channel().writeAndFlush("发送数据=======" + content + "--" + DateUtils.getTime());
future.channel().writeAndFlush("发送数据=======" + content + "--" + DateUtils.getDateTime());
try { //休眠一段时间
Thread.sleep(3000);
} catch (InterruptedException e) {

View File

@@ -64,7 +64,7 @@ public class NettyClientHandler extends ChannelInboundHandlerAdapter {
return;
}
//将客户端的信息直接返回写入ctx
ctx.write(msg + " 时间:" + DateUtils.getTime());
ctx.write(msg + " 时间:" + DateUtils.getDateTime());
//刷新缓存区
ctx.flush();
}