浏览代码

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