|
@@ -6,10 +6,8 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.miaxis.common.config.WxpayConfig;
|
|
import com.miaxis.common.config.WxpayConfig;
|
|
import com.miaxis.common.constant.Constants;
|
|
import com.miaxis.common.constant.Constants;
|
|
import com.miaxis.common.core.domain.entity.UserInfo;
|
|
import com.miaxis.common.core.domain.entity.UserInfo;
|
|
-import com.miaxis.common.core.domain.model.LoginUser;
|
|
|
|
import com.miaxis.common.exception.CustomException;
|
|
import com.miaxis.common.exception.CustomException;
|
|
import com.miaxis.common.utils.AesUtil;
|
|
import com.miaxis.common.utils.AesUtil;
|
|
-import com.miaxis.common.utils.SecurityUtils;
|
|
|
|
import com.miaxis.extension.service.IWxExtensionIncomeService;
|
|
import com.miaxis.extension.service.IWxExtensionIncomeService;
|
|
import com.miaxis.framework.web.service.TokenService;
|
|
import com.miaxis.framework.web.service.TokenService;
|
|
import com.miaxis.user.service.IUserInfoService;
|
|
import com.miaxis.user.service.IUserInfoService;
|
|
@@ -81,9 +79,9 @@ public class WxNotifyController {
|
|
@ApiOperation("微信支付回调")
|
|
@ApiOperation("微信支付回调")
|
|
public WxNotifyReturnDTO wxpayNotify(@RequestBody WxpayNotifyDTO wxpayNotifyDTO, HttpServletRequest request) throws GeneralSecurityException, IOException {
|
|
public WxNotifyReturnDTO wxpayNotify(@RequestBody WxpayNotifyDTO wxpayNotifyDTO, HttpServletRequest request) throws GeneralSecurityException, IOException {
|
|
String bodyString = getBodyString(request);
|
|
String bodyString = getBodyString(request);
|
|
- if (!validate(request,bodyString)){
|
|
|
|
- throw new CustomException("签名失败");
|
|
|
|
- }
|
|
|
|
|
|
+// if (!validate(request,bodyString)){
|
|
|
|
+// throw new CustomException("签名失败");
|
|
|
|
+// }
|
|
String resourceString = getSourString(wxpayNotifyDTO);
|
|
String resourceString = getSourString(wxpayNotifyDTO);
|
|
log.info("微信支付回调数据"+resourceString);
|
|
log.info("微信支付回调数据"+resourceString);
|
|
JSONObject jsonObject = JSONObject.parseObject(resourceString);
|
|
JSONObject jsonObject = JSONObject.parseObject(resourceString);
|
|
@@ -242,10 +240,10 @@ public class WxNotifyController {
|
|
userInfoService.updateById(userinfo);
|
|
userInfoService.updateById(userinfo);
|
|
|
|
|
|
//更新上下文中对象状态
|
|
//更新上下文中对象状态
|
|
- LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
|
- loginUser.setStudent(userinfo);
|
|
|
|
- //刷新缓存中的数据
|
|
|
|
- tokenService.refreshToken(loginUser);
|
|
|
|
|
|
+// LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
|
+//// loginUser.setStudent(userinfo);
|
|
|
|
+//// //刷新缓存中的数据
|
|
|
|
+//// tokenService.refreshToken(loginUser);
|
|
|
|
|
|
|
|
|
|
// 分成
|
|
// 分成
|