|
@@ -4,9 +4,11 @@
|
|
|
#include "stdafx.h"
|
|
|
#include "SpBase.h"
|
|
|
#include "SpIni.h"
|
|
|
-
|
|
|
+#ifdef RVC_OS_WIN
|
|
|
+#else
|
|
|
#include "SpTest.h"
|
|
|
#include "modVer.h"
|
|
|
+#endif
|
|
|
|
|
|
#include "UploadFSM.h"
|
|
|
#include "Upload_server_g.h"
|
|
@@ -37,13 +39,15 @@ public:
|
|
|
virtual ~CUploadEntity() {}
|
|
|
virtual const char* GetEntityName() const { return "Upload"; }
|
|
|
virtual bool IsService()const { return true; }
|
|
|
+#ifdef RVC_OS_WIN
|
|
|
+#else
|
|
|
const char* GetEntityVersion() const override
|
|
|
{
|
|
|
return MODULE_VERSION_FULL;
|
|
|
}
|
|
|
|
|
|
ON_ENTITYT_TEST()
|
|
|
-
|
|
|
+#endif
|
|
|
virtual void OnPreStart(CAutoArray<CSimpleStringA> strArgs, CSmartPointer<ITransactionContext> pTransactionContext)
|
|
|
{
|
|
|
ErrorCodeEnum Error = Error_Succeed;
|
|
@@ -84,20 +88,22 @@ public:
|
|
|
ctx->Ans.uploadState = 2;
|
|
|
ctx->Ans.uploadNumber = 0;
|
|
|
ctx->Ans.elapseTime = CSimpleStringA2W("");
|
|
|
- Dbg("UploadProgess is disable");
|
|
|
+ //Dbg("UploadProgess is disable");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("UploadProgess")("UploadProgess is disable");
|
|
|
return ret;
|
|
|
}
|
|
|
//查询剩余待上传的文件个数
|
|
|
ErrorCodeEnum UploadNumber(SpReqAnsContext<UploadService_UploadNumber_Req, UploadService_UploadNumber_Ans>::Pointer ctx)
|
|
|
{
|
|
|
ErrorCodeEnum ret = Error_Succeed;
|
|
|
- Dbg("UploadNumber req silentTime is %d", ctx->Req.silentTime);
|
|
|
+ //Dbg("UploadNumber req silentTime is %d",ctx->Req.silentTime);
|
|
|
//废弃接口
|
|
|
//int fileNum = m_fsm.getCheckDirFile(ctx->Req.silentTime);
|
|
|
//Dbg("UploadNumber is %d",fileNum);
|
|
|
//ctx->Ans.uploadNumber=fileNum;
|
|
|
ctx->Ans.uploadNumber = 0;
|
|
|
- Dbg("UploadNumber is disable");
|
|
|
+ //Dbg("UploadNumber is disable");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("UploadNumber")("UploadNumber is disable");
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -113,7 +119,8 @@ public:
|
|
|
// ctx->Ans.uploadDateStr=str;
|
|
|
//}
|
|
|
ctx->Ans.uploadDateStr = str;
|
|
|
- Dbg("UploadDateList is disable");
|
|
|
+ //Dbg("UploadDateList is disable");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("UploadDateList")("UploadDateList is disable");
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
@@ -128,7 +135,8 @@ public:
|
|
|
//}else{
|
|
|
// ctx->Ans.isOK=false;
|
|
|
//}
|
|
|
- Dbg("ClearUploadDate is disable");
|
|
|
+ //Dbg("ClearUploadDate is disable");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("ClearUploadDate")("ClearUploadDate is disable");
|
|
|
ctx->Ans.isOK = true;
|
|
|
return ret;
|
|
|
}
|