|  |  |  | 
|---|
|  |  |  | import com.matrix.core.tools.LogUtil; | 
|---|
|  |  |  | import com.matrix.core.tools.PropertiesUtil; | 
|---|
|  |  |  | import com.matrix.core.tools.UUIDUtil; | 
|---|
|  |  |  | import com.matrix.system.common.bean.BusParameterSettings; | 
|---|
|  |  |  | import com.matrix.system.common.constance.AppConstance; | 
|---|
|  |  |  | import com.matrix.system.common.dao.BusParameterSettingsDao; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.SysShopInfoDao; | 
|---|
|  |  |  | import com.matrix.system.hive.plugin.util.CollectionUtils; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.api.WeChatApiTools; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.api.pojo.QrcodeImgParam; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.api.vo.QrcodeVo; | 
|---|
|  |  |  | import com.matrix.system.shopXcx.api.vo.WxActivitiesGroupBuyVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | @CrossOrigin(origins = "*", maxAge = 3600) | 
|---|
|  |  |  | public class WxShareProductAction { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | WeChatApiTools weChatApiTools; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ShopProductDao shopProductDao; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ShopProduct shopProduct = shopProductDao.selectById(seckillInfo.getGoodsId().intValue()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID()); | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID() | 
|---|
|  |  |  | ,weChatApiTools.getAppid(loginUser.getCompanyId()),weChatApiTools.getSecret(loginUser.getCompanyId())); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LogUtil.debug("qrcodeSavePath={}", qrcodeSavePath); | 
|---|
|  |  |  | // 图片保存目录路径 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | ShopProduct shopProduct = shopProductDao.selectById(groupBuyVO.getGoodsId().intValue()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID()); | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID() | 
|---|
|  |  |  | ,weChatApiTools.getAppid(loginUser.getCompanyId()),weChatApiTools.getSecret(loginUser.getCompanyId())); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LogUtil.debug("qrcodeSavePath={}", qrcodeSavePath); | 
|---|
|  |  |  | // 图片保存目录路径 | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID()); | 
|---|
|  |  |  | String qrcodeSavePath = WxacodeUtil.getWxacode(qrcodeVo.getScene(), qrcodeVo.getPath(), UUIDUtil.getRandomID() | 
|---|
|  |  |  | ,weChatApiTools.getAppid(loginUser.getCompanyId()),weChatApiTools.getSecret(loginUser.getCompanyId())); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LogUtil.debug("qrcodeSavePath={}", qrcodeSavePath); | 
|---|
|  |  |  | // 图片保存目录路径 | 
|---|
|  |  |  | 
|---|
|  |  |  | g = b2Img.createGraphics(); | 
|---|
|  |  |  | g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, 1)); | 
|---|
|  |  |  | g.drawImage(qrcordImgBuf, 320, 550, 140, 140, null); | 
|---|
|  |  |  | g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); | 
|---|
|  |  |  | g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB); | 
|---|
|  |  |  | //标题 | 
|---|
|  |  |  | g.setColor(new Color(0xF10D0A0A, true)); | 
|---|
|  |  |  | Font font = new Font("微软雅黑", Font.PLAIN, 24); | 
|---|