|
@@ -77,7 +77,7 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
if(user !=null){
|
|
if(user !=null){
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- String callBackUrl = ucenterConfig.getContactUsCallBackUrl()+contactUs.getEmail();
|
|
|
|
|
|
|
+ String callBackUrl = ucenterConfig.getContactUsCallBackUrl() + uuid;
|
|
|
Boolean b = mailTemplateService.sendContactUs(contactUs.getEmail(),callBackUrl);
|
|
Boolean b = mailTemplateService.sendContactUs(contactUs.getEmail(),callBackUrl);
|
|
|
|
|
|
|
|
if(!b){
|
|
if(!b){
|
|
@@ -94,8 +94,8 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
String rediskey = String.format(RedisKeyUtil.CONTACT_US_KEY,uuid);
|
|
String rediskey = String.format(RedisKeyUtil.CONTACT_US_KEY,uuid);
|
|
|
String rediskey2 = null;
|
|
String rediskey2 = null;
|
|
|
try {
|
|
try {
|
|
|
- if(redisUtil.hasKey(rediskey)){
|
|
|
|
|
- ContactUs contactUs = JSONObject.parseObject(redisUtil.get(rediskey),ContactUs.class);
|
|
|
|
|
|
|
+ if(redisUtil.hasKey(rediskey) ){
|
|
|
|
|
+ ContactUs contactUs = JSONObject.parseObject( redisUtil.get(rediskey),ContactUs.class);
|
|
|
contactUs.setCountry(IPUtils.getCountry(contactUs.getIpAddress()));
|
|
contactUs.setCountry(IPUtils.getCountry(contactUs.getIpAddress()));
|
|
|
this.save(contactUs);
|
|
this.save(contactUs);
|
|
|
rediskey2 = String.format(RedisKeyUtil.CONTACT_US_KEY,contactUs.getEmail());
|
|
rediskey2 = String.format(RedisKeyUtil.CONTACT_US_KEY,contactUs.getEmail());
|