|
@@ -1,6 +1,7 @@
|
|
|
package com.zhongzheng.controller.user;
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.zhongzheng.common.annotation.Log;
|
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
@@ -9,6 +10,7 @@ import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
+import com.zhongzheng.controller.alioss.OssController;
|
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
|
import com.zhongzheng.framework.web.service.WxTokenService;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
@@ -23,6 +25,8 @@ import com.zhongzheng.modules.wx.bo.WxLoginBody;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -51,6 +55,8 @@ public class UserController extends BaseController {
|
|
|
private final IUserVisitLogService iUserVisitLogService;
|
|
|
|
|
|
private final WxLoginService wxLoginService;
|
|
|
+
|
|
|
+ private static Logger log = LoggerFactory.getLogger(UserController.class);
|
|
|
/**
|
|
|
* 修改客户端用户
|
|
|
*/
|
|
@@ -164,6 +170,7 @@ public class UserController extends BaseController {
|
|
|
@PostMapping("/gzh_bind")
|
|
|
public AjaxResult gzh_bind(@RequestBody WxLoginBody loginBody)
|
|
|
{
|
|
|
+ log.error("购买前获取公众号openid参数", JSON.toJSONString(loginBody));
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
loginBody.setUserId(loginUser.getUser().getUserId());
|
|
|
wxLoginService.bindWxGzhUnionIdUser(loginBody);
|