|
@@ -2,7 +2,6 @@ package com.abi.qms.platform.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import com.abi.base.foundation.util.RedisClient;
|
|
|
-import com.abi.qms.platform.constant.RedisKeysConstant;
|
|
|
import com.abi.qms.platform.dao.entity.*;
|
|
|
import com.abi.qms.platform.dao.enums.*;
|
|
|
import com.abi.qms.platform.dao.mapper.*;
|
|
@@ -10,6 +9,7 @@ import com.abi.qms.platform.dao.tablestore.entity.QrCode;
|
|
|
import com.abi.qms.platform.dao.vo.result.*;
|
|
|
import com.abi.qms.platform.dto.req.*;
|
|
|
import com.abi.qms.platform.dto.res.*;
|
|
|
+import com.abi.qms.platform.infrastructure.constant.RedisKey;
|
|
|
import com.abi.qms.platform.infrastructure.mq.GenerateCodeConsumer;
|
|
|
import com.abi.qms.platform.infrastructure.util.*;
|
|
|
import com.abi.qms.platform.service.FactoryService;
|
|
@@ -674,7 +674,7 @@ public class QrPackageServiceImpl implements QrPackageService {
|
|
|
//key:packId:mobile
|
|
|
Long packId = qrPackage.getId();
|
|
|
String mobile = factory.getKeymanMobile();
|
|
|
- String key = MessageFormat.format("{0}{1}:{2}", RedisKeysConstant.DOWNLOAD_MOBILE_MSG, packId, mobile);
|
|
|
+ String key = MessageFormat.format("{0}{1}:{2}", RedisKey.DOWNLOAD_MOBILE_MSG, packId, mobile);
|
|
|
|
|
|
//获取随机验证码
|
|
|
String captcha = RandomCodeUtils.getCaptcha(6);
|
|
@@ -695,7 +695,7 @@ public class QrPackageServiceImpl implements QrPackageService {
|
|
|
* @return
|
|
|
*/
|
|
|
private boolean verifyCaptcha(String mobile, String inputCaptcha, Long packId) {
|
|
|
- String key = MessageFormat.format("{0}{1}:{2}", RedisKeysConstant.DOWNLOAD_MOBILE_MSG, packId, mobile);
|
|
|
+ String key = MessageFormat.format("{0}{1}:{2}", RedisKey.DOWNLOAD_MOBILE_MSG, packId, mobile);
|
|
|
log.info("验证下载key:{}", key);
|
|
|
String captcha = redisClient.get(key);
|
|
|
log.info(inputCaptcha + "--------------------" + captcha);
|