فهرست منبع

供应商注册part3

Aslee 4 سال پیش
والد
کامیت
1a071be66a
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/main/java/com/caimei365/user/service/impl/ShopServiceImpl.java

+ 4 - 2
src/main/java/com/caimei365/user/service/impl/ShopServiceImpl.java

@@ -225,7 +225,7 @@ public class ShopServiceImpl implements ShopService {
     @Override
     public JsonModel<BaseUser> appletsRegister(Integer source, String name, String sName, String bindMobile, String email, String smsCode, String password, String passWordConfirm, String linkMan, Integer provinceId, Integer cityId, Integer townId, String address, String socialCreditCode, String businessLicenseImage, String firstShopType, String secondShopType, String mainPro, Integer isAgreed, ServerWebExchange serverWebExchange, Integer whichStep) {
         // 参数校验
-        if (whichStep == 1) {
+        if (1 == whichStep) {
             if (StringUtils.isBlank(bindMobile) || StringUtils.isBlank(password)
                     || StringUtils.isBlank(smsCode) || StringUtils.isBlank(password)
                     || StringUtils.isBlank(passWordConfirm)) {
@@ -248,7 +248,8 @@ public class ShopServiceImpl implements ShopService {
             if (redisSmsCode.equals(smsCode)) {
                 return JsonModel.error("手机验证码错误", null);
             }
-        } else if (whichStep == 2) {
+            return JsonModel.success();
+        } else if (2 == whichStep) {
             if (StringUtils.isBlank(name) || StringUtils.isBlank(linkMan)) {
                 return JsonModel.error("参数异常");
             }
@@ -258,6 +259,7 @@ public class ShopServiceImpl implements ShopService {
                     return JsonModel.error("该邮箱已被使用", null);
                 }
             }
+            return JsonModel.success();
         } else if (1 != isAgreed) {
             return JsonModel.error("请勾选同意协议");
         }