소스 검색

供应商注册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("请勾选同意协议");
         }