...
|
...
|
@@ -87,7 +87,7 @@ public class QuickDeliverGoodsService { |
|
|
RedisKeyBuilder redisLockKey = RedisKeyBuilder.newInstance()
|
|
|
.appendFixed("ufo:order:lock:publishQuickDeliverGoods:")
|
|
|
.appendVar(req.getUid() + "-" + req.getStorageId());
|
|
|
if (redisLock.acquire(redisLockKey, 1, TimeUnit.SECONDS)) {
|
|
|
if (redisLock.acquire(redisLockKey, 5, TimeUnit.SECONDS)) {
|
|
|
try {
|
|
|
QuickDeliverOrderContext qdoc = quickDeliverPublishProcessor.buildPublishCtx(req);
|
|
|
return doPublish(qdoc);
|
...
|
...
|
@@ -95,6 +95,7 @@ public class QuickDeliverGoodsService { |
|
|
redisLock.release(redisLockKey);
|
|
|
}
|
|
|
} else {
|
|
|
logger.warn("storage has publishing , {} ", redisLockKey);
|
|
|
throw new UfoServiceException(400, "寄存商品上架中,稍后再试");
|
|
|
}
|
|
|
}
|
...
|
...
|
|