@@ -119,7 +119,10 @@ bool Storage_TaskAction(LPCXSTR lpszAPIName, LPCXSTR lpszClientAddr, LPCXSTR lps
119119 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 业务客户端:%s,处理用户转录动作失败,下载文件失败,URL:%s,路径:%s,Bucket:%s,类型:%d" ), lpszClientAddr, st_ActionInfo.tszFileUrl , tszFileName, st_ActionInfo.tszBucketStr , st_ActionInfo.byType );
120120 return false ;
121121 }
122- APIClient_File_SetMaxSpeed (xhAction, st_ServiceCfg.st_XAction .nSDMax , st_ServiceCfg.st_XAction .nRVMax );
122+ if (st_ServiceCfg.st_XAction .nRVMax > 0 )
123+ {
124+ APIClient_File_SetMaxSpeed (xhAction, st_ServiceCfg.st_XAction .nSDMax , st_ServiceCfg.st_XAction .nRVMax );
125+ }
123126 APIClient_File_Start (xhAction);
124127 Session_Action_Insert (xhToken, xhAction, &st_ActionInfo);
125128 Protocol_StoragePacket_Action (tszRVBuffer, &nRVLen, xhToken, &st_ActionInfo);
@@ -141,7 +144,10 @@ bool Storage_TaskAction(LPCXSTR lpszAPIName, LPCXSTR lpszClientAddr, LPCXSTR lps
141144 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 业务客户端:%s,处理用户转录动作失败,下载文件失败,URL:%s,路径:%s,Bucket:%s,类型:%d" ), lpszClientAddr, st_ActionInfo.tszFileUrl , tszFileName, st_ActionInfo.tszBucketStr , st_ActionInfo.byType );
142145 return false ;
143146 }
144- APIClient_File_SetMaxSpeed (xhAction, st_ServiceCfg.st_XAction .nSDMax , st_ServiceCfg.st_XAction .nRVMax );
147+ if (st_ServiceCfg.st_XAction .nSDMax )
148+ {
149+ APIClient_File_SetMaxSpeed (xhAction, st_ServiceCfg.st_XAction .nSDMax , st_ServiceCfg.st_XAction .nRVMax );
150+ }
145151 APIClient_File_Start (xhAction);
146152 Session_Action_Insert (xhToken, xhAction, &st_ActionInfo);
147153 Protocol_StoragePacket_Action (tszRVBuffer, &nRVLen, xhToken, &st_ActionInfo);
0 commit comments