浏览代码

no message

FengChaoYu 1 天之前
父节点
当前提交
b04e2146bf
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

+ 4 - 4
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

@@ -588,11 +588,11 @@ public class UserLogic {
             CommonUtils.initList2(row, 10);
             String mobile = (String) row.get(0);
             // 授权额度
-            String creditLimit = (String) row.get(0);
+            String creditLimit = (String) row.get(1);
             // 账单日(1-28),如果是29表示月末
-            String billingDay = (String) row.get(0);
+            String billingDay = (String) row.get(2);
             // 账期天数(1-30天)
-            String paymentGracePeriod = (String) row.get(0);
+            String paymentGracePeriod = (String) row.get(3);
 
             if (StringUtils.isAnyBlank(mobile, creditLimit, billingDay, paymentGracePeriod)) {
                 throw new RemoteServiceException(errPrefix + "橙色区域为必填项");
@@ -626,7 +626,7 @@ public class UserLogic {
             try {
                 billingDayInt = new Integer(billingDay);
                 if (billingDayInt < 1 || billingDayInt > 29) {
-                    throw new RuntimeException();
+                    throw new RemoteServiceException(errPrefix + " 请填写正确的账单日(1-29)");
                 }
             } catch (Exception e) {
                 throw new RemoteServiceException(errPrefix + " 请填写正确的账单日(1-29)");