From b2267194ce6c49dbd78c5d1798e958b3a4bd1f55 Mon Sep 17 00:00:00 2001 From: dulingling Date: Fri, 27 Nov 2020 11:31:09 +0800 Subject: [PATCH] =?UTF-8?q?Upd:=E5=90=88=E8=A7=84=E4=B8=AD=E5=BF=83-?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=90=88=E8=A7=84=E6=96=87=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/riskbusiness/core/impl/RiskUploadServiceIpml.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java index d24b95a2a..c720c729b 100644 --- a/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java +++ b/src/main/java/au/com/royalpay/payment/manage/riskbusiness/core/impl/RiskUploadServiceIpml.java @@ -12,6 +12,7 @@ import au.com.royalpay.payment.manage.riskbusiness.core.RiskUploadService; import au.com.royalpay.payment.manage.riskbusiness.enums.RiskResultTypeEnum; import au.com.royalpay.payment.tools.exceptions.BadRequestException; import au.com.royalpay.payment.tools.threadpool.RoyalThreadPoolExecutor; +import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.time.DateFormatUtils; @@ -55,10 +56,10 @@ public class RiskUploadServiceIpml implements RiskUploadService { material.put("material_id",riskMaterialMapper.findAllMaterials(riskId).get(0).getString("material_id")); for(int i=1;i<=10;i++){ if(material.containsKey("file"+i+"_url")){ - List urls = (List)material.get("file"+i+"_url"); + JSONArray urls = material.getJSONArray("file" + i + "_url"); if (urls == null || urls.isEmpty()) continue; - for(String url:urls){ + for(Object url:urls){ JSONObject file = new JSONObject(); file.put("file_url",url); file.put("file_type",i);