| | |
| | | @Override |
| | | public String generate(String content) { |
| | | String image_name = "/qr/" + content + ".png"; |
| | | content = Constants.WEB_URL + "/register.html?usercode=" + content; |
| | | final String userCode = content; |
| | | content = Constants.buildRegisterInviteLink(userCode); |
| | | boolean openButton = sysparaService.find("short_url_open_button").getBoolean() ; |
| | | if(openButton) { |
| | | content = sysparaService.find("agent_qr_url").getSvalue() + "/register.html?usercode=" + content; |
| | | String agentBase = Constants.normalizeWebUrl(sysparaService.find("agent_qr_url").getSvalue()); |
| | | content = agentBase + "/#/register?usercode=" + userCode; |
| | | boolean isCn = sysparaService.find("short_url_cn_button").getBoolean() ; |
| | | if(isCn) { |
| | | content = shortUrlCn(content); |
| | |
| | | @Override |
| | | public String generate185(String content) { |
| | | String image_name = "/qr/" + content + "2.png"; |
| | | content = Constants.WEB_URL + "/register.html?usercode=" + content; |
| | | content = Constants.buildRegisterInviteLink(content); |
| | | // String image_name = "/qr/" + UUIDGenerator.getUUID() + ".png"; |
| | | String filepath = Constants.IMAGES_DIR + image_name; |
| | | File file = new File(filepath); |