@@ -83,7 +83,7 @@ BOOL CProtocol_StoragePacket::Protocol_StoragePacket_QueryFile(TCHAR* ptszMsgBuf
8383 st_JsonObject[" tszFileUser" ] = (*pppSt_DBFile)[i]->st_ProtocolFile .tszFileUser ;
8484 st_JsonObject[" tszFileHash" ] = (*pppSt_DBFile)[i]->st_ProtocolFile .tszFileHash ;
8585 st_JsonObject[" tszFileTime" ] = (*pppSt_DBFile)[i]->st_ProtocolFile .tszFileTime ;
86- st_JsonObject[" nFileSize" ] = (*pppSt_DBFile)[i]->st_ProtocolFile .nFileSize ;
86+ st_JsonObject[" nFileSize" ] = (Json::Value::Int64)( *pppSt_DBFile)[i]->st_ProtocolFile .nFileSize ;
8787 // 只有在P2P下取文件列表才有效
8888 if (_tcslen ((*pppSt_DBFile)[i]->tszTableName ) > 0 )
8989 {
@@ -165,11 +165,11 @@ BOOL CProtocol_StoragePacket::Protocol_StoragePacket_Info(TCHAR* ptszMsgBuffer,
165165 Json::Value st_JsonObject;
166166 st_JsonObject[" tszClientAddr" ] = (*pppSt_DLInfo)[i]->tszClientAddr ;
167167 st_JsonObject[" tszFilePath" ] = (*pppSt_DLInfo)[i]->tszFileDir ;
168- st_JsonObject[" ullCount" ] = (*pppSt_DLInfo)[i]->ullCount ;
169- st_JsonObject[" ullRWCount" ] = (*pppSt_DLInfo)[i]->ullRWCount ;
170- st_JsonObject[" ullRWLen" ] = (*pppSt_DLInfo)[i]->ullRWLen ;
171- st_JsonObject[" ullPosStart" ] = (*pppSt_DLInfo)[i]->ullPosStart ;
172- st_JsonObject[" ullPosEnd" ] = (*pppSt_DLInfo)[i]->ullPosEnd ;
168+ st_JsonObject[" ullCount" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullCount ;
169+ st_JsonObject[" ullRWCount" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullRWCount ;
170+ st_JsonObject[" ullRWLen" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullRWLen ;
171+ st_JsonObject[" ullPosStart" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullPosStart ;
172+ st_JsonObject[" ullPosEnd" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullPosEnd ;
173173
174174 st_JsonDLArray.append (st_JsonObject);
175175 }
@@ -178,11 +178,11 @@ BOOL CProtocol_StoragePacket::Protocol_StoragePacket_Info(TCHAR* ptszMsgBuffer,
178178 Json::Value st_JsonObject;
179179 st_JsonObject[" tszClientAddr" ] = (*pppSt_DLInfo)[i]->tszClientAddr ;
180180 st_JsonObject[" tszFilePath" ] = (*pppSt_DLInfo)[i]->tszFileDir ;
181- st_JsonObject[" ullCount" ] = (*pppSt_DLInfo)[i]->ullCount ;
182- st_JsonObject[" ullRWCount" ] = (*pppSt_DLInfo)[i]->ullRWCount ;
183- st_JsonObject[" ullRWLen" ] = (*pppSt_DLInfo)[i]->ullRWLen ;
184- st_JsonObject[" ullPosStart" ] = (*pppSt_DLInfo)[i]->ullPosStart ;
185- st_JsonObject[" ullPosEnd" ] = (*pppSt_DLInfo)[i]->ullPosEnd ;
181+ st_JsonObject[" ullCount" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullCount ;
182+ st_JsonObject[" ullRWCount" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullRWCount ;
183+ st_JsonObject[" ullRWLen" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullRWLen ;
184+ st_JsonObject[" ullPosStart" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullPosStart ;
185+ st_JsonObject[" ullPosEnd" ] = (Json::Value::Int64)( *pppSt_DLInfo)[i]->ullPosEnd ;
186186
187187 st_JsonUPArray.append (st_JsonObject);
188188 }
@@ -384,7 +384,7 @@ BOOL CProtocol_StoragePacket::Protocol_StoragePacket_UPDown(TCHAR* ptszMsgBuffer
384384 st_JsonRoot[" lpszBuckKey" ] = lpszBuckKey;
385385 st_JsonRoot[" lpszFileName" ] = lpszFileName;
386386 st_JsonRoot[" lpszClientAddr" ] = lpszClientAddr;
387- st_JsonRoot[" nFileSize" ] = nFileSize;
387+ st_JsonRoot[" nFileSize" ] = (Json::Value::Int64) nFileSize;
388388 if (NULL == lpszFileHash)
389389 {
390390 st_JsonRoot[" lpszFileHash" ];
0 commit comments