mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update
This commit is contained in:
@@ -90,10 +90,10 @@ public class AdapayMemberController extends BaseController {
|
|||||||
Map<String, Object> map = adapayMemberService.updateAdapayMember(dto);
|
Map<String, Object> map = adapayMemberService.updateAdapayMember(dto);
|
||||||
result = AjaxResult.success(map);
|
result = AjaxResult.success(map);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
logger.warn("查询汇付会员接口异常warn", e);
|
logger.warn("更新结算账户接口warn", e);
|
||||||
result = AjaxResult.error(e.getMessage());
|
result = AjaxResult.error(e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("查询汇付会员接口异常error", e);
|
logger.error("更新结算账户接口error", e);
|
||||||
result = AjaxResult.error("查询汇付会员接口异常");
|
result = AjaxResult.error("查询汇付会员接口异常");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.jsowell.common.util;
|
package com.jsowell.common.util;
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
@@ -13,6 +14,9 @@ import java.util.zip.ZipOutputStream;
|
|||||||
|
|
||||||
public class ZipUtil {
|
public class ZipUtil {
|
||||||
public static File createZipFileFromImages(List<String> imageUrls) {
|
public static File createZipFileFromImages(List<String> imageUrls) {
|
||||||
|
if (CollectionUtils.isEmpty(imageUrls)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
File zipFile = new File("images.zip");
|
File zipFile = new File("images.zip");
|
||||||
try (FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos)) {
|
try (FileOutputStream fos = new FileOutputStream(zipFile); ZipOutputStream zos = new ZipOutputStream(fos)) {
|
||||||
for (int i = 0; i < imageUrls.size(); i++) {
|
for (int i = 0; i < imageUrls.size(); i++) {
|
||||||
|
|||||||
@@ -453,6 +453,9 @@ public class AdapayMemberService {
|
|||||||
log.info("更新企业账户param:{}", memberParams);
|
log.info("更新企业账户param:{}", memberParams);
|
||||||
Map<String, Object> member = AdapayCommon.requestAdapayFile(memberParams, file);
|
Map<String, Object> member = AdapayCommon.requestAdapayFile(memberParams, file);
|
||||||
log.info("更新企业账户result:{}", JSON.toJSONString(member));
|
log.info("更新企业账户result:{}", JSON.toJSONString(member));
|
||||||
|
if (StringUtils.equals((String) member.get("status"), "failed")) {
|
||||||
|
throw new BusinessException("", (String) member.get("error_msg"));
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user