diff --git a/android客户端代码/java/weaving/socket/Wclient.java b/android客户端代码/java/weaving/socket/Wclient.java index 5457e37..9486edc 100644 --- a/android客户端代码/java/weaving/socket/Wclient.java +++ b/android客户端代码/java/weaving/socket/Wclient.java @@ -99,7 +99,10 @@ public class Wclient { int i = 0; for (byte item : list) { - ret += ((item& 0xFF) << i); + if(item>=0) + ret += ((item) << i); +else + ret += ((item& 0xFF) << i); i += 8; } return ret;