|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON; |
|
|
|
import com.bweb.config.SysConst; |
|
|
|
import com.bweb.config.SysConst; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
|
|
|
|
import com.hai.common.Base64Util; |
|
|
|
import com.hai.common.QRCodeGenerator; |
|
|
|
import com.hai.common.QRCodeGenerator; |
|
|
|
import com.hai.common.exception.ErrorCode; |
|
|
|
import com.hai.common.exception.ErrorCode; |
|
|
|
import com.hai.common.exception.ErrorHelp; |
|
|
|
import com.hai.common.exception.ErrorHelp; |
|
|
@ -109,7 +110,7 @@ public class HighDiscountAgentRelController { |
|
|
|
//参数
|
|
|
|
//参数
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("type", QrCodeType.AGENT_QR_CODE); |
|
|
|
map.put("type", QrCodeType.AGENT_QR_CODE); |
|
|
|
map.put("code", AESEncodeUtil.aesEncrypt(highDiscountAgentRel.getId().toString())); |
|
|
|
map.put("code", AESEncodeUtil.aesEncrypt(Base64Util.encode(highDiscountAgentRel.getId().toString()))); |
|
|
|
QRCodeGenerator.generateQRCodeImage(JSON.toJSONString(map), 350, 350, qrCodeUrl); |
|
|
|
QRCodeGenerator.generateQRCodeImage(JSON.toJSONString(map), 350, 350, qrCodeUrl); |
|
|
|
highDiscountAgentRel.setQrCode(qrCodeImg); |
|
|
|
highDiscountAgentRel.setQrCode(qrCodeImg); |
|
|
|
highDiscountAgentRelService.updateDiscountAgentRel(highDiscountAgentRel); |
|
|
|
highDiscountAgentRelService.updateDiscountAgentRel(highDiscountAgentRel); |
|
|
|