|
|
@@ -98,7 +98,7 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
throw BusinessRuntimeException.getInstance("提现异常");
|
|
|
}
|
|
|
}
|
|
|
- String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), applyMoneyReq.getMType(), applyMoneyReq.getUserId());
|
|
|
+ String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), applyMoneyReq.getUserId().toString(), applyMoneyReq.getMType(), applyMoneyReq.getUserId());
|
|
|
if (!redisService.setNx(key, applyMoneyReq.getUserId(), RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getTimeout())) {
|
|
|
throw BusinessRuntimeException.getInstance("每2天可提现一次");
|
|
|
}
|