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); }