|
@@ -139,6 +139,7 @@ public class AdwebProductServiceImpl extends ServiceImpl<AdwebProductMapper, Adw
|
|
|
params.put("adduser", productDTO.getAuthorName());
|
|
|
params.put("image", imageBase64);
|
|
|
|
|
|
+ log.info("向苏豪推送产品消息,api地址:{}, 参数:{}", SOHOEB2B_PUSH_PRODUCT_API, params);
|
|
|
try {
|
|
|
HttpResponse response = HttpRequest
|
|
|
.post(SOHOEB2B_PUSH_PRODUCT_API)
|
|
@@ -184,7 +185,7 @@ public class AdwebProductServiceImpl extends ServiceImpl<AdwebProductMapper, Adw
|
|
|
// 对字节数组Base64编码
|
|
|
return Base64Encoder.encode(outStream.toByteArray());
|
|
|
} catch (Exception e) {
|
|
|
- log.error("下载图片并转base64失败:{}", e.getMessage());
|
|
|
+ log.error("图片地址:{}, 下载图片并转base64失败:{}", imgUrl, e.getMessage());
|
|
|
} finally {
|
|
|
if (is != null) {
|
|
|
try {
|