| | |
| | | return R.tokenError("登录失效"); |
| | | } |
| | | Long userId = loginUser.getUserid(); |
| | | |
| | | String string = userId.toString(); |
| | | CommissionRule one = commissionRuleService.lambdaQuery().one(); |
| | | HashMap<String, String> blueCode = new HashMap<>(); |
| | | blueCode.put("user_id", userId + ""); |
| | | String blueS = "http://113.45.158.158/share/#/pages/register/register?userId="+userId; |
| | | blueCode.put("user_id", string); |
| | | System.err.println("APP推广活动页"+string); |
| | | |
| | | String blueS = "https://xq.xqzhihui.com/share/#/pages/register/register?userId="+string; |
| | | |
| | | MyQrCodeUtil.createCodeToFile(blueS); |
| | | BufferedImage blueImage = QRCodeUtil.createImage(blueS); |
| | |
| | | @PostMapping("/getCommissionRuleShare") |
| | | @ApiOperation(value = "推广活动页",tags = "H5分享") |
| | | public R<CommissionRule> getCommissionRuleShare(String userId) throws Exception { |
| | | System.err.println("推广人id"+userId); |
| | | CommissionRule one = commissionRuleService.lambdaQuery().one(); |
| | | HashMap<String, String> blueCode = new HashMap<>(); |
| | | blueCode.put("user_id", userId + ""); |
| | | String blueS = "http://113.45.158.158/share/#/pages/register/register?userId="+userId; |
| | | String blueS = "https://xq.xqzhihui.com/share/#/pages/register/register?userId="+userId; |
| | | MyQrCodeUtil.createCodeToFile(blueS); |
| | | BufferedImage blueImage = QRCodeUtil.createImage(blueS); |
| | | MultipartFile blueFile = convert(blueImage, new Date().getTime() + UUIDUtil.getRandomCode(3) + ".PNG"); |