From 8ecc9344d0cc577e2c268d79b98d15d38055d322 Mon Sep 17 00:00:00 2001 From: luoyang Date: Fri, 24 May 2019 11:34:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=BA=BF=E4=B8=8B=E5=95=86=E6=88=B7?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=8A=A5=E5=A4=87=20=E6=9C=89=E4=B8=80?= =?UTF-8?q?=E7=A7=8D=E7=85=A7=E7=89=87=E5=B0=B1=E8=BF=9B=E8=A1=8C=E6=8A=A5?= =?UTF-8?q?=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manage/dev/core/impl/AliforexcelServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/dev/core/impl/AliforexcelServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/dev/core/impl/AliforexcelServiceImpl.java index 0adcbdfce..f0c446ccf 100644 --- a/src/main/java/au/com/royalpay/payment/manage/dev/core/impl/AliforexcelServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/dev/core/impl/AliforexcelServiceImpl.java @@ -221,9 +221,15 @@ public class AliforexcelServiceImpl implements AliforexcelService { throw new InvalidParameterException("Website cannot be empty "); } }else { - if (!client.containsKey("store_photo") || !client.containsKey("company_photo")) { + if (!client.containsKey("store_photo") && !client.containsKey("company_photo")) { throw new InvalidParameterException("store photo cannot be empty "); } + if (client.containsKey("store_photo") && !client.containsKey("company_photo")) { + client.put("company_photo", client.getString("store_photo")); + } + if (client.containsKey("company_photo") && !client.containsKey("store_photo")) { + client.put("store_photo", client.getString("company_photo")); + } } if (StringUtils.isBlank(client.getString("business_structure"))) { throw new InvalidParameterException("Business Structure can't be null");