Commit 2849ad44a40c39ff12b875205f5ba2c2b5d321f7
1 parent
341effc6
授权控制
Showing
1 changed file
with
4 additions
and
2 deletions
src/ai_platform/MultiSourceProcess.cpp
... | ... | @@ -28,6 +28,8 @@ |
28 | 28 | |
29 | 29 | #define WITH_FACE_DET_SS |
30 | 30 | |
31 | +#define AUTHORIZATION | |
32 | + | |
31 | 33 | #define productSN "51C4B28135604F649671727185949A91" //linux 通途抓拍引擎产品序列号 |
32 | 34 | |
33 | 35 | using namespace std; |
... | ... | @@ -90,7 +92,7 @@ int CMultiSourceProcess::InitAlgorthim(tsl_aiplatform_param vptParam){ |
90 | 92 | set_default_logger(LogLevel(vptParam.log_level), "multi_source_process", vptParam.log_path, vptParam.log_mem, vptParam.log_mem); |
91 | 93 | LOG_INFO("编译时间:{} {}", __DATE__, __TIME__); |
92 | 94 | |
93 | -#ifdef USE_VILLAGE | |
95 | +#ifndef AUTHORIZATION | |
94 | 96 | if (!CheckTime()) { //时间限制 |
95 | 97 | LOG_ERROR("sy_licence_check failed."); |
96 | 98 | return AUTHOR_ERROR; |
... | ... | @@ -700,7 +702,7 @@ int CMultiSourceProcess::algorthim_process_thread(){ |
700 | 702 | ACL_CALL(aclrtCreateContext(&ctx, m_devId), ACL_SUCCESS, 1); |
701 | 703 | |
702 | 704 | while (true){ |
703 | -#ifdef USE_VILLAGE | |
705 | +#ifndef AUTHORIZATION | |
704 | 706 | if (!CheckTime()) { //时间限制 |
705 | 707 | LOG_FATAL("authority failed!"); |
706 | 708 | break; | ... | ... |