|
@@ -213,7 +213,7 @@ public class UserMineController extends BaseApiController {
|
|
return AjaxResult.error("您未微信授权登录,无法提现,请重新微信授权登录");
|
|
return AjaxResult.error("您未微信授权登录,无法提现,请重新微信授权登录");
|
|
}
|
|
}
|
|
String lockKey = RedisLockKey.build(RedisLockKey.USER_RED_PKG_DRAW_LOCK, userId);
|
|
String lockKey = RedisLockKey.build(RedisLockKey.USER_RED_PKG_DRAW_LOCK, userId);
|
|
- if (!distributedLocker.tryLock(lockKey, 3, -1, TimeUnit.SECONDS)) {
|
|
|
|
|
|
+ if (!distributedLocker.tryLock(lockKey)) {
|
|
return AjaxResult.error("红包提现太频繁,请稍后再操作");
|
|
return AjaxResult.error("红包提现太频繁,请稍后再操作");
|
|
}
|
|
}
|
|
boolean rst = false;
|
|
boolean rst = false;
|