Commit 502dc0c7 by 徐高华

Merge branch 'developer' into 'master'

Developer

See merge request !202
parents 59827a7f 95eb70cb
......@@ -466,7 +466,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
private String limitIp(HmQrcodeBO hm) {
String ipKey = "hmadd:limit:ip";
int ipLimitCount = 200;
int ipLimitCount = 300;
RRateLimiter rateLimiter = RedisUtil.getRedisClient().getRateLimiter(ipKey);
rateLimiter.trySetRate(RateType.OVERALL, ipLimitCount, 1, RateIntervalUnit.SECONDS);
if (rateLimiter.tryAcquire()) {
......
......@@ -151,7 +151,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
loginUserDict = managerDictService.getSMSDict("app_login_phone_num", loginStaff.getWxOpenUseId());
}
logger.info("伪登录:{}userId:{},loginUser={}", loginStaff.getPhoneNumber(), loginStaff.getWxOpenUseId(), JSONObject.toJSONString(loginUserDict));
if (null != loginUserDict) {
if (null != loginUserDict && StringUtils.isNotEmpty(loginUserDict.getDictName()) && loginUserDict.getDictName().split(":").length==2) {
String dictValue = loginUserDict.getDictValue();
List<StaffDTO> staffDTOS = new ArrayList<>();
List<StaffDTO> phoneDtos = staffApiService.listByPhoneNumber(dictValue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment