935090232@qq.com
2022-02-24 ceea128c48d5b21ebd1bb46943d656446aa974ec
zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxSalesmanAction.java
@@ -10,7 +10,6 @@
import com.matrix.core.pojo.VerificationResult;
import com.matrix.core.tools.LogUtil;
import com.matrix.core.tools.MD5Util;
import com.matrix.core.tools.PropertiesUtil;
import com.matrix.core.tools.StringUtils;
import com.matrix.system.common.bean.BusParameterSettings;
import com.matrix.system.common.constance.AppConstance;
@@ -34,6 +33,7 @@
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
@@ -53,6 +53,9 @@
@RestController
@RequestMapping(value = "/wxapi/salesman")
public class WxSalesmanAction {
    @Autowired
    WxacodeUtil wxacodeUtil;
    @Autowired
    BusParameterSettingsDao busParameterSettingsDao;
@@ -75,6 +78,12 @@
    @Autowired
    ShopProductDao shopProductDao;
    @Value("${file_storage_path}")
    private String fileStoragePath;
    @Value("${static_resource_url}")
    private String staticResourceUrl;
    @ApiOperation(value = "查询推广计划", notes = "")
    @GetMapping(value = "/getTgPlan")
@@ -183,9 +192,9 @@
        try {
            SysVipInfo loginUser = userCacheManager.getLoginUser();
            String baseSavePath = PropertiesUtil.getString(AppConstance.FILES_TORAGE_PATH);
            String baseSavePath = fileStoragePath;
            // 图片访问URL
            String baseSaveUrl = PropertiesUtil.getString(AppConstance.NGINX_URL);
            String baseSaveUrl =staticResourceUrl;
            //目标海报物理存储路径
            String targetImg = MD5Util.strToMD5(loginUser.getOpenId()) + "haibao.png";
@@ -193,7 +202,7 @@
            String urlPath = baseSaveUrl + "/" + "wxacode" + "/" + targetImg;
            String qrcodeSavePath = WxacodeUtil.getWxacode(loginUser.getId() + "", "pages/distributorCenter/applyFor/applyFor", MD5Util.strToMD5(loginUser.getOpenId()) + "qrcode"
            String qrcodeSavePath = wxacodeUtil.getWxacode(loginUser.getId() + "", "pages/distributorCenter/applyFor/applyFor", MD5Util.strToMD5(loginUser.getOpenId()) + "qrcode"
                    , weChatApiTools.getAppid(loginUser.getCompanyId()), weChatApiTools.getSecret(loginUser.getCompanyId()));
            BufferedImage qrcordImgBuf = ImageIO.read(new File(qrcodeSavePath));