|
@@ -3,6 +3,7 @@ package com.caimei365.user.service.impl;
|
|
|
import com.aliyuncs.exceptions.ClientException;
|
|
|
import com.caimei365.user.components.CommonService;
|
|
|
import com.caimei365.user.components.RedisService;
|
|
|
+import com.caimei365.user.components.StringRedisService;
|
|
|
import com.caimei365.user.mapper.BaseMapper;
|
|
|
import com.caimei365.user.mapper.LoginMapper;
|
|
|
import com.caimei365.user.mapper.SuperVipMapper;
|
|
@@ -45,6 +46,9 @@ import java.util.Map;
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class BaseServiceImpl implements BaseService {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private StringRedisService stringRedisService;
|
|
|
@Resource
|
|
|
private SuperVipMapper vipMapper;
|
|
|
@Resource
|
|
@@ -197,7 +201,7 @@ public class BaseServiceImpl implements BaseService {
|
|
|
} else if (6 == activateCodeType) {
|
|
|
String content = "您正在采美平台发布二手商品,您的验证码为:" + randomCode + ",10分钟内有效,请勿泄露他人。";
|
|
|
sendFlag = isBeta || remoteCallService.remoteSendSms(0, 1, mobile, content);
|
|
|
- codeTypeTxt = "更换联系人(旧手机号验证码)";
|
|
|
+ codeTypeTxt = "发布二手商品";
|
|
|
} else if (7 == activateCodeType || 9 == activateCodeType) {
|
|
|
// 校验是否发送验证码
|
|
|
/*Object resCode = redisService.get("code:" + mobile);
|
|
@@ -334,7 +338,8 @@ public class BaseServiceImpl implements BaseService {
|
|
|
if (sendFlag) {
|
|
|
if (6 == activateCodeType) {
|
|
|
//二手验证码10分钟有效期
|
|
|
- redisService.set("code:" + mobile, randomCode, 600L);
|
|
|
+ stringRedisService.set("code:" + mobile, randomCode, 600L);
|
|
|
+ log.info("redis------------set------------------>" + "code:" + mobile + "----------" + randomCode);
|
|
|
} else if (8 == activateCodeType || 10 == activateCodeType || 11 == activateCodeType || 14 == activateCodeType || 15 == activateCodeType) {
|
|
|
// 联合丽格验证码5分钟有效期
|
|
|
redisService.set("code:" + mobile, randomCode, 300L);
|