@@ -159,8 +159,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_QueryFile(XCHAR* ptszMsgBuf
159159 {
160160 st_JsonRoot[" xhToken" ] = (Json::Value::UInt64)xhToken;
161161 }
162- st_JsonRoot[" Code " ] = 0 ;
163- st_JsonRoot[" Msg " ] = _X (" ok " );
162+ st_JsonRoot[" code " ] = 0 ;
163+ st_JsonRoot[" msg " ] = _X (" success " );
164164 // 打包输出信息
165165 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
166166 memcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str (), *pInt_MsgLen);
@@ -250,8 +250,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_Info(XCHAR* ptszMsgBuffer,
250250 st_JsonRoot[" DLList" ] = st_JsonDLArray;
251251 st_JsonRoot[" UPList" ] = st_JsonUPArray;
252252
253- st_JsonRoot[" Code " ] = 0 ;
254- st_JsonRoot[" Msg " ] = _X (" ok " );
253+ st_JsonRoot[" code " ] = 0 ;
254+ st_JsonRoot[" msg " ] = _X (" success " );
255255 // 打包输出信息
256256 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
257257 memcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str (), *pInt_MsgLen);
@@ -306,8 +306,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_DirOperator(XCHAR* ptszMsgB
306306 }
307307 st_JsonRoot[" Count" ] = st_JsonArray.size ();
308308 st_JsonRoot[" List" ] = st_JsonArray;
309- st_JsonRoot[" Code " ] = 0 ;
310- st_JsonRoot[" Msg " ] = _X (" ok " );
309+ st_JsonRoot[" code " ] = 0 ;
310+ st_JsonRoot[" msg " ] = _X (" success " );
311311 // 打包输出信息
312312 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
313313 memcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str (), *pInt_MsgLen);
@@ -373,7 +373,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_BasicAuth(LPCXSTR lpszMetho
373373 st_JsonRoot[" lpszClientAddr" ] = lpszClientAddr;
374374 st_JsonRoot[" lpszUser" ] = lpszUser;
375375 st_JsonRoot[" lpszPass" ] = lpszPass;
376-
376+ st_JsonRoot[" code" ] = 0 ;
377+ st_JsonRoot[" msg" ] = _X (" success" );
377378 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
378379 _tcsxcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str ());
379380 return true ;
@@ -451,7 +452,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_UPDown(XCHAR* ptszMsgBuffer
451452 {
452453 st_JsonRoot[" lpszFileHash" ] = lpszFileHash;
453454 }
454-
455+ st_JsonRoot[" code" ] = 0 ;
456+ st_JsonRoot[" msg" ] = _X (" success" );
455457 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
456458 _tcsxcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str ());
457459 return true ;
@@ -514,6 +516,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_REQFile(XCHAR* ptszMsgBuffe
514516 }
515517 st_JsonRoot[" unOperatorType" ] = ENUM_XENGINE_COMMUNICATION_PROTOCOL_TYPE_STORAGE;
516518 st_JsonRoot[" unOperatorCode" ] = XENGINE_COMMUNICATION_PROTOCOL_OPERATOR_CODE_STORAGE_REQQUERY;
519+ st_JsonRoot[" code" ] = 0 ;
520+ st_JsonRoot[" msg" ] = _X (" success" );
517521 // 打包输出信息
518522 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
519523 memcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str (), *pInt_MsgLen);
@@ -564,6 +568,8 @@ bool CProtocol_StoragePacket::Protocol_StoragePacket_Action(XCHAR* ptszMsgBuffer
564568 st_JsonRoot[" tszFileUrl" ] = pSt_ActionInfo->tszFileUrl ;
565569 st_JsonRoot[" byType" ] = pSt_ActionInfo->byType ;
566570 st_JsonRoot[" tszBucketStr" ] = pSt_ActionInfo->tszBucketStr ;
571+ st_JsonRoot[" code" ] = 0 ;
572+ st_JsonRoot[" msg" ] = _X (" success" );
567573 // 打包输出信息
568574 *pInt_MsgLen = st_JsonRoot.toStyledString ().length ();
569575 memcpy (ptszMsgBuffer, st_JsonRoot.toStyledString ().c_str (), *pInt_MsgLen);
0 commit comments