|
|
@ -30,6 +30,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.io.UnsupportedEncodingException; |
|
|
|
import java.lang.reflect.Field; |
|
|
@ -366,7 +367,7 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Override |
|
|
|
public void redirectUri(HttpServletRequest request, HttpServletResponse response,String customerId, String client) { |
|
|
|
public void redirectUri(HttpServletRequest request, HttpServletResponse response,String customerId, String client) throws IOException{ |
|
|
|
log.info("开始执行回调URL"); |
|
|
|
try { |
|
|
|
request.setCharacterEncoding(ModuleConstant.UTF8); |
|
|
@ -391,11 +392,13 @@ public class ComponentVerifyTicketServiceImpl implements ComponentVerifyTicketSe |
|
|
|
//授权方AppId
|
|
|
|
// formDTO.setAuthAppId(authorizationInfo.getAuthorizer_appid());
|
|
|
|
formDTO.setCustomerId(customerId); |
|
|
|
log.info(formDTO.toString()); |
|
|
|
// this.updateCustomerMpAppIdAndCreateOpenPlatform(customerId,authorizationInfo.getAuthorizer_appid(),client);
|
|
|
|
authCodeDao.insertRedirectAuthCode(formDTO); |
|
|
|
//authCode存缓存
|
|
|
|
redisThird.setAuthCode(formDTO); |
|
|
|
log.info("回调结束"); |
|
|
|
response.sendRedirect(WxMaCodeConstant.WEB_URL); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|