| | |
| | | } |
| | | Long userId = loginUser.getUserid(); |
| | | Page<CommonQuestion> page = commonQuestionService.lambdaQuery() |
| | | .eq(CommonQuestion::getType,1) |
| | | .orderByDesc(CommonQuestion::getSortNum) |
| | | .orderByDesc(CommonQuestion::getCreateTime) |
| | | .page(new Page<>(pageCurr, pageSize)); |
| | | if (page.getRecords().isEmpty()){ |
| | | return R.ok(PageDTO.empty(page)); |
| | |
| | | Long userId = loginUser.getUserid(); |
| | | Page<CommonQuestion> page = commonQuestionService.lambdaQuery() |
| | | .eq(CommonQuestion::getType,1) |
| | | .orderByDesc(CommonQuestion::getSortNum) |
| | | .orderByDesc(CommonQuestion::getCreateTime) |
| | | .page(new Page<>(pageCurr, pageSize)); |
| | | if (page.getRecords().isEmpty()){ |
| | | return R.ok(PageDTO.empty(page)); |
| | |
| | | one.setQrCode(s); |
| | | return R.ok(one); |
| | | } |
| | | |
| | | public static void main(String[] args) throws Exception { |
| | | HashMap<String, String> blueCode = new HashMap<>(); |
| | | blueCode.put("url", "https://xqgwzh.obs.cn-south-1.myhuaweicloud.com/apkAndroid.apk"); |
| | | String blueS = "https://xqgwzh.obs.cn-south-1.myhuaweicloud.com/apkAndroid.apk"; |
| | | MyQrCodeUtil.createCodeToFile(blueS); |
| | | BufferedImage blueImage = QRCodeUtil.createImage(blueS); |
| | | MultipartFile blueFile = convert(blueImage, new Date().getTime() + UUIDUtil.getRandomCode(3) + ".PNG"); |
| | | String s = ObsUploadUtil.obsUpload(blueFile); |
| | | System.err.println(s); |
| | | } |
| | | @PostMapping("/getCommissionRuleShare") |
| | | @ApiOperation(value = "推广活动页",tags = "H5分享") |
| | | public R<CommissionRule> getCommissionRuleShare(String userId) throws Exception { |