Browse Source

测试环境不发送采购公告

tags/24080901
WendyYang 7 months ago
parent
commit
ee2fb5fd57
2 changed files with 2 additions and 4 deletions
  1. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/external/MhApiClient.java
  2. +0
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/external/MhFileClient.java

+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/external/MhApiClient.java View File

@@ -101,9 +101,9 @@ public class MhApiClient {
}

public void publishPurchaseNotice(List<MhPurchaseNoticeDTO> notices) {
/*if (environmentUtil.isDevEnv()) {
if (environmentUtil.isDevEnv()) {
return;
}*/
}
String requestUrl = mhApiHost + PURCHASE_NOTICE;
String retBody = HttpUtil.post(requestUrl, JSONUtil.toJsonStr(notices));
MhRetDTO<Object> retObj = JSONUtil.toBean(retBody,


+ 0
- 2
hz-pm-api/src/main/java/com/hz/pm/api/external/MhFileClient.java View File

@@ -1,6 +1,5 @@
package com.hz.pm.api.external;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.TypeReference;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
@@ -14,7 +13,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;


Loading…
Cancel
Save