| | |
| | | import com.stylefeng.guns.modular.system.service.*; |
| | | import com.stylefeng.guns.modular.system.util.ResultUtil; |
| | | import com.stylefeng.guns.modular.system.util.WeChatUtil; |
| | | import com.stylefeng.guns.modular.system.util.qianyuntong.UserUtil; |
| | | import com.stylefeng.guns.modular.system.warpper.LoginWarpper; |
| | | import com.stylefeng.guns.modular.system.warpper.UserInfoWarpper; |
| | | import com.stylefeng.guns.modular.system.warpper.VerifiedWarpper; |
| | |
| | | Integer uid = userInfoService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | UserInfo userInfo = userInfoService.selectById(uid); |
| | | if(ToolUtil.isEmpty(userInfo.getOnconUUID())){ |
| | | String onconUUIDByMobile = UserUtil.getOnconUUIDByMobile("15828353127"); |
| | | userInfo.setOnconUUID(onconUUIDByMobile); |
| | | userInfoService.updateById(userInfo); |
| | | } |
| | | Map<String, Object> map = userInfoService.queryUserInfo(uid); |
| | | UserWithdrawal userWithdrawal1 = userWithdrawalService.selectOne(new EntityWrapper<UserWithdrawal>() |
| | |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/base/user/addAppUser") |
| | | @PostMapping("/base/user/addAppUser") |
| | | public String addAppUser(String phone, String code, String areaCode){ |
| | | try { |
| | | return userInfoService.addAppUser(phone, code, areaCode); |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 代驾系统验根据用户id获取电话号码 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @GetMapping("/base/user/getUserPhone/{id}") |
| | | public String getUserPhone(@PathVariable("id") Integer id){ |
| | | UserInfo userInfo = userInfoService.selectById(id); |
| | | if(null != userInfo){ |
| | | return userInfo.getPhone(); |
| | | } |
| | | return null; |
| | | } |
| | | } |