|
@@ -29,6 +29,7 @@ import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -89,7 +90,7 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void callBack(String uuid, HttpServletResponse response) {
|
|
public void callBack(String uuid, HttpServletResponse response) {
|
|
|
-
|
|
|
|
|
|
|
+ String redirectUrl =ucenterConfig.getMainUrl();
|
|
|
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 {
|
|
@@ -117,7 +118,7 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
userService.save(userEntity);
|
|
userService.save(userEntity);
|
|
|
LoginVo login = loginService.login(userEntity);
|
|
LoginVo login = loginService.login(userEntity);
|
|
|
response.setHeader("token", login.getToken());
|
|
response.setHeader("token", login.getToken());
|
|
|
- response.sendRedirect(contactUs.getRedirectUrl());
|
|
|
|
|
|
|
+ redirectUrl = contactUs.getRedirectUrl();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
@@ -127,6 +128,11 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
if(rediskey2 != null){
|
|
if(rediskey2 != null){
|
|
|
redisUtil.del(rediskey2);
|
|
redisUtil.del(rediskey2);
|
|
|
}
|
|
}
|
|
|
|
|
+ try {
|
|
|
|
|
+ response.sendRedirect(redirectUrl);
|
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
|
+ throw new RuntimeException(e);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|