Commit 80da8474 by 王祖波

log

parent ef622d52
...@@ -529,11 +529,12 @@ public class MaterialApiServiceImpl implements MaterialApiService { ...@@ -529,11 +529,12 @@ public class MaterialApiServiceImpl implements MaterialApiService {
if (StringUtils.isNotBlank(cache)) { if (StringUtils.isNotBlank(cache)) {
return com.gic.api.base.commons.ServiceResponse.success(cache); return com.gic.api.base.commons.ServiceResponse.success(cache);
} }
logger.info("请求合成图片并上传企微");
Future<JSONResponse> future = null; Future<JSONResponse> future = null;
JSONResponse json = null; JSONResponse json = null;
try { try {
future = ImageCombined.EXECUTOR.submit(() -> { future = ImageCombined.EXECUTOR.submit(() -> {
TraceIdUtil.traceBegin(TraceIdUtil.EntranceType.QUARTZ); TraceIdUtil.traceBegin(TraceIdUtil.EntranceType.THREAD_POOL);
logger.info("线程池合成图片"); logger.info("线程池合成图片");
JSONResponse jr = materialService.getMaterialIdByCombined(wxEnterpriseId, combinedQDTO); JSONResponse jr = materialService.getMaterialIdByCombined(wxEnterpriseId, combinedQDTO);
TraceIdUtil.traceEnd(); TraceIdUtil.traceEnd();
......
...@@ -71,7 +71,7 @@ public class QWmediaTest { ...@@ -71,7 +71,7 @@ public class QWmediaTest {
AtomicLong minTime = new AtomicLong(Long.MAX_VALUE); AtomicLong minTime = new AtomicLong(Long.MAX_VALUE);
for (int i = 0; i < TOTAL_REQUESTS; i++) { for (int i = 0; i < TOTAL_REQUESTS; i++) {
final int requestId = i; final int requestId = i + 100;
executorService.submit(() -> { executorService.submit(() -> {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment