|
@@ -3,7 +3,10 @@ package com.iamberry.wechat.handles.pay;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
+import com.iamberry.wechat.filters.WechatFilter;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -24,6 +27,8 @@ import com.iamberry.wechat.tools.WeixinUtil;
|
|
*/
|
|
*/
|
|
@Controller
|
|
@Controller
|
|
public class WechatBackHandler {
|
|
public class WechatBackHandler {
|
|
|
|
+
|
|
|
|
+ private static Logger logger = LoggerFactory.getLogger(WechatBackHandler.class);
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private HomeService homeService;
|
|
private HomeService homeService;
|
|
@@ -43,6 +48,9 @@ public class WechatBackHandler {
|
|
@RequestParam(value = "callback", required = false) String callback,
|
|
@RequestParam(value = "callback", required = false) String callback,
|
|
HttpServletRequest request,
|
|
HttpServletRequest request,
|
|
HttpServletResponse response) throws Exception {
|
|
HttpServletResponse response) throws Exception {
|
|
|
|
+
|
|
|
|
+ logger.info("微信返回的连接");
|
|
|
|
+
|
|
String callbackURL = NameUtils.getConfig("redirectUrl_index");
|
|
String callbackURL = NameUtils.getConfig("redirectUrl_index");
|
|
if (callback != null) {
|
|
if (callback != null) {
|
|
callbackURL = "redirect:" + WechatUtils.getCallback(callback);
|
|
callbackURL = "redirect:" + WechatUtils.getCallback(callback);
|