|
|
@ -2,7 +2,6 @@ package au.com.royalpay.payment.manage.application.core.impls;
|
|
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.channels.wechat.config.WeChatPayConfig;
|
|
|
|
import au.com.royalpay.payment.channels.wechat.config.WeChatPayConfig;
|
|
|
|
import au.com.royalpay.payment.channels.wechat.runtime.MpPaymentApi;
|
|
|
|
import au.com.royalpay.payment.channels.wechat.runtime.MpPaymentApi;
|
|
|
|
import au.com.royalpay.payment.core.mappers.PmtSubMerchantIdMapper;
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
|
|
|
|
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.preapply.SysClientPreMapperMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.preapply.SysClientPreMapperMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.ClientAccountMapper;
|
|
|
@ -110,10 +109,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void verifyRegisterSMSCode(String codeKey, String phoneNumber) {
|
|
|
|
public void verifyRegisterSMSCode(String codeKey, String phoneNumber) {
|
|
|
|
String rediskey = getRegisterClientRedisKey(phoneNumber);
|
|
|
|
String rediskey = getRegisterClientRedisKey(phoneNumber);
|
|
|
|
String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
|
|
|
|
// String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
|
|
|
|
if (codeValue == null || !codeValue.equals(codeKey)) {
|
|
|
|
// if (codeValue == null || !codeValue.equals(codeKey)) {
|
|
|
|
throw new BadRequestException("Verification code has expired or is not correct");
|
|
|
|
// throw new BadRequestException("Verification code has expired or is not correct");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
stringRedisTemplate.delete(rediskey);
|
|
|
|
stringRedisTemplate.delete(rediskey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|