Commit e5626607 authored by 刘基明's avatar 刘基明

同步专栏 constant

parent f79ce678
......@@ -25,5 +25,9 @@ public final class CommunityConstant {
public static final String THEME_PREFIX ="NEW_THEME_";
public static final String OLD_FILE_UPLOAD_URL ="http://tp-fatools-svc/fatools/h5/rest/common/uploadSingleFile";
}
......@@ -302,7 +302,7 @@ public class ThemeManager {
params.add("item", item);
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<MultiValueMap<String, Object>>(params, headers);
// tp-community-svc
ResponseEntity<String> response = restTemplate.exchange("http://tp-fatools-svc/fatools/h5/rest/common/uploadSingleFile", HttpMethod.POST, requestEntity, String.class);
ResponseEntity<String> response = restTemplate.exchange(CommunityConstant.OLD_FILE_UPLOAD_URL, HttpMethod.POST, requestEntity, String.class);
log.info("new-community uploadThemePic returns {}", JSON.toJSONString(response));
if (StringUtils.isBlank(response.getBody())) {
throw new RuntimeException("response body is blank");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment