| | |
| | | loginUser = bizUserDao.selectById(loginUser.getUserId()); |
| | | if(loginUser.getIsSales()==1){ |
| | | return AjaxResult.buildSuccessInstance("只有非分销员才能被绑定成客户"); |
| | | }if (StringUtils.isNotBlank(loginUser.getParentOpenId())){ |
| | | return AjaxResult.buildSuccessInstance("已经被绑定"); |
| | | }else{ |
| | | if (StringUtils.isBlank(loginUser.getParentOpenId())) { |
| | | Map<String, Object> updateParam = new HashMap<>(); |
| | |
| | | |
| | | String urlPath = baseSaveUrl + "/" + "wxacode" + "/" + targetImg; |
| | | |
| | | String qrcodeSavePath = WxacodeUtil.getWxacode(loginUser.getOpenId() + "", "pages/distributorCenter/applyFor/applyFor", MD5Util.strToMD5(loginUser.getOpenId())+"qrcode" |
| | | String qrcodeSavePath = WxacodeUtil.getWxacode(loginUser.getUserId() + "", "pages/distributorCenter/applyFor/applyFor", MD5Util.strToMD5(loginUser.getOpenId())+"qrcode" |
| | | ,weChatApiTools.getAppid(loginUser.getCompanyId()),weChatApiTools.getSecret(loginUser.getCompanyId())); |
| | | |
| | | BufferedImage qrcordImgBuf = ImageIO.read(new File(qrcodeSavePath)); |