Merge pull request 'fix:测试ai统计接口,调整获取验证码_当天最多发送10条_缓存时间调整为24小时' (#15) from fix/aiStatistics_2825_2826 into test

Reviewed-on: #15
pull/16/head
cuihaojie 1 year ago
commit 611f07687d

@ -20,7 +20,7 @@ public interface CacheConstants {
//缓存超时时间,单位:秒,目前验证码使用
int CACHE_TIME = 300;//300;
//缓存超时时间,单位:秒,目前ai统计使用 24小时
//缓存超时时间,单位:秒,目前ai统计使用 24小时,获取验证码在使用
int TOOLSCOUNT_TENANTID_CACHE_TIME = 86400;
//保存ai统计租户id对象

@ -84,7 +84,7 @@ public class SmsLoginServiceImpl implements SmsLoginService {
iCacheManager.put(CacheConstants.USER_PHONE_MODEL_NAME,phone,code,CacheConstants.CACHE_TIME);
// 更新手机号当天获取验证码的次数
iCacheManager.put(CacheConstants.USER_PHONE_MODEL_NAME, cacheKey, count + 1, CacheConstants.CACHE_TIME);
iCacheManager.put(CacheConstants.USER_PHONE_MODEL_NAME, cacheKey, count + 1, CacheConstants.TOOLSCOUNT_TENANTID_CACHE_TIME);
//保存验证码到 缓存中
return ResultVoUtil.success(code);

Loading…
Cancel
Save