From 2f7e6f5fb3409ee6b466ae5a1108b42634f12f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?iFish=28=E6=9C=A8=E9=B1=BC=29?= Date: Fri, 31 Jul 2015 23:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=A0=81=E5=87=BD=E6=95=B0=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web12306/js/platform/messageCoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web12306/js/platform/messageCoder.js b/Web12306/js/platform/messageCoder.js index bd196d9..ffb85cc 100644 --- a/Web12306/js/platform/messageCoder.js +++ b/Web12306/js/platform/messageCoder.js @@ -138,7 +138,7 @@ var b3 = data[pos++]; var b4 = data[pos++]; - return b1 | b2 << 8 | b3 << 16 | b4 << 24; + return b1 + b2 * 256 + b3 * Math.pow(2, 16) | b4 * Math.pow(2, 24); }; var readInt64 = function () { var int1 = readInt32();