| | |
| | | @ApiOperation("天府通办登录") |
| | | @PostMapping("tfLogin") |
| | | public R tfLogin(@RequestBody UuLoginVO uuLoginVO){ |
| | | try { |
| | | log.info("天府通办登录【{}】", JSONObject.toJSONString(uuLoginVO.getMobile())); |
| | | String str=RSAUtils.decrypt(uuLoginVO.getMobile(), Constants.PRIVATE_KEY); |
| | | log.info("天府通办登录【{}】", JSONObject.toJSONString(str)); |
| | | uuLoginVO.setMobile(str); |
| | | //测试是否能正常添加用户 |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return R.fail(); |
| | | } |
| | | // try { |
| | | // log.info("天府通办登录【{}】", JSONObject.toJSONString(uuLoginVO.getMobile())); |
| | | // String str=RSAUtils.decrypt(uuLoginVO.getMobile(), Constants.PRIVATE_KEY); |
| | | // log.info("天府通办登录【{}】", JSONObject.toJSONString(str)); |
| | | // uuLoginVO.setMobile(str); |
| | | // //测试是否能正常添加用户 |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // return R.fail(); |
| | | // } |
| | | userService.tfLogin(uuLoginVO); |
| | | R r=tokenService.tfLogin(uuLoginVO.getMobile(),"Huacheng@123","wx118de8a734d269f0"); |
| | | return r; |