|
|
@@ -9,6 +9,8 @@ import com.usoftchina.smartschool.school.wxschool.basic.service.WxUserService;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
import com.usoftchina.smartschool.school.wxschool.utils.ResultBean;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.util.Assert;
|
|
|
@@ -49,6 +51,8 @@ public class WxUserController {
|
|
|
|
|
|
@Value("${smartschool.domain.wechat}")
|
|
|
private String wechatUrl;
|
|
|
+
|
|
|
+ private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
/**
|
|
|
* 发送验证码
|
|
|
*/
|
|
|
@@ -156,6 +160,10 @@ public class WxUserController {
|
|
|
} catch (UnsupportedEncodingException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+
|
|
|
+ logger.error("result={}", result);
|
|
|
+ logger.error("body={}", body);
|
|
|
+ logger.error("redirect:" + wechatUrl + "/bindMenu/open/"+openid+"/"+encode);
|
|
|
return new ModelAndView("redirect:" + wechatUrl + "/bindMenu/open/"+openid+"/"+encode);
|
|
|
}
|
|
|
|