From 36cc4f8b4e9362f2d5f138694037ff64add9bacd Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Wed, 27 Jan 2021 18:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/apis/carduser/CardUserAppController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/cn/com/tenlion/controller/app/apis/carduser/CardUserAppController.java b/src/main/java/cn/com/tenlion/controller/app/apis/carduser/CardUserAppController.java index 0914c0c..ac92ce1 100644 --- a/src/main/java/cn/com/tenlion/controller/app/apis/carduser/CardUserAppController.java +++ b/src/main/java/cn/com/tenlion/controller/app/apis/carduser/CardUserAppController.java @@ -50,8 +50,10 @@ public class CardUserAppController extends AbstractController { * @return * @throws Exception */ - @GetMapping("weiXinLoginBySmallRoutine"+ISystemConstant.RELEASE_SUFFIX+"/{vxCode}") - public SuccessResult weiXinLoginBySmallRoutine (@PathVariable("vxCode") String vxCode) throws Exception { + @GetMapping("weiXinLoginBySmallRoutine"+ISystemConstant.RELEASE_SUFFIX+"/{vxCode}/{vxPhone}") + public SuccessResult weiXinLoginBySmallRoutine( + @PathVariable("vxCode") String vxCode, @PathVariable("vxPhone") String vxPhone + ) throws Exception { WxApiUtil wxapi = new WxApiUtil(); WeiXinAuthResult austerest = wxapi.weiXinLoginGetAuth(vxCode, ISystemConstant.VX_APP_ID, ISystemConstant.VX_APP_SECRET, ISystemConstant.VX_GRANT_TYPE); if (austerest == null) { @@ -70,6 +72,8 @@ public class CardUserAppController extends AbstractController { CardUserVO carduservo = new CardUserVO(); carduservo.setVxOpenId(austerest.getOpenid()); carduservo.setVxUnionId(austerest.getUnionid()); + carduservo.setUserPhone(vxPhone); + carduservo.setUserName(vxPhone); userId = cardUserService.saveCardUserReturnId(carduservo); userdto = cardUserService.getCardUserByVxOpenId(userId); }