| | |
| | | import org.apache.http.impl.client.CloseableHttpClient; |
| | | import org.apache.http.impl.client.HttpClients; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.client.RestTemplate; |
| | |
| | | @RequiredArgsConstructor |
| | | public class XcxPayServiceImpl implements IXcxPayService { |
| | | |
| | | @Autowired |
| | | private MallOrderInfoMapper mallOrderInfoMapper; |
| | | @Autowired |
| | | private MallMemberMapper mallMemberMapper; |
| | | @Autowired |
| | | WeixinServiceUtil weixinServiceUtil; |
| | | @Autowired |
| | | private DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | @Autowired |
| | | private MallMoneyFlowMapper mallMoneyFlowMapper; |
| | | @Autowired |
| | | private MallMemberWithdrawMapper mallMemberWithdrawMapper; |
| | | private final MallOrderInfoMapper mallOrderInfoMapper; |
| | | private final MallMemberMapper mallMemberMapper; |
| | | private final WeixinServiceUtil weixinServiceUtil; |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | private final MallMoneyFlowMapper mallMoneyFlowMapper; |
| | | private final MallMemberWithdrawMapper mallMemberWithdrawMapper; |
| | | private final IMallMoneyFlowService mallMoneyFlowService; |
| | | @Autowired |
| | | RedisUtils redisUtils; |
| | | |
| | | private final MallGoodsMapper mallGoodsMapper; |
| | | private final MallTeamLeaderMapper mallTeamLeaderMapper; |
| | | private final RedisUtils redisUtils; |
| | | |
| | | private final SpringContextHolder springContextHolder; |
| | | |
| | |
| | | return wxTemplates; |
| | | } |
| | | |
| | | @Autowired |
| | | private MallGoodsMapper mallGoodsMapper; |
| | | @Autowired |
| | | private MallTeamLeaderMapper mallTeamLeaderMapper; |
| | | |
| | | @Override |
| | | public FebsResponse generateQrCode(WxGenerateQrCodeDto wxGenerateQrCodeDto) { |
| | | Integer type = wxGenerateQrCodeDto.getType(); |
| | |
| | | * @param imgName 图片唯一名称 |
| | | * @return |
| | | */ |
| | | //图片上传路径 |
| | | public static final String IMG_UPLOAD_PATH="/mnt/sdc/webresource/blnka/wxcode"; |
| | | // 文件保存目录路径 |
| | | @Value("${static.resource.url}") |
| | | private String resourceUrl; |
| | | // 文件保存目录URL |
| | | @Value("${static.resource.path}") |
| | | private String resourcePath; |
| | | public String generateAcode(String scene,String path,String imgName,String width, Integer type){ |
| | | String urlPrefix="https://file.blnka.cn/blnka/wxcode"; |
| | | String imgPath=IMG_UPLOAD_PATH+imgName; |
| | | String urlPrefix = resourceUrl + "/wxcode"; |
| | | String imgPath=resourcePath +"/wxcode"+imgName; |
| | | if(!FileUtil.exist(imgPath)){ |
| | | |
| | | cn.hutool.json.JSONObject obj = JSONUtil.createObj(); |