Browse Source

sleep(3000)

yegang 3 years ago
parent
commit
4bbf6e2194
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/java/com/sw/service/impl/SnatchMaskServiceImpl.java

+ 1 - 0
src/main/java/com/sw/service/impl/SnatchMaskServiceImpl.java

@@ -163,6 +163,7 @@ public class SnatchMaskServiceImpl implements SnatchMaskService {
         try {
             if (lock.tryLock(1000, TimeUnit.MILLISECONDS)) {
                 log.info("线程:{} 获取锁", threadName);
+                Thread.sleep(3000);
                 log.info("doSnatch方法执行结果:{}", this.doSnatch(uid, maskId));
                 lock.unlock();
                 log.info("{}:业务执行完成", threadName);