Просмотр исходного кода

因为手机号码存在数据异常的问题,现在去掉手机号验证

hejq 8 лет назад
Родитель
Сommit
139553ffcc

+ 7 - 3
src/main/java/com/uas/platform/b2b/v2/controller/InviteRecordController.java

@@ -21,6 +21,7 @@ import com.uas.search.b2b.model.SPage;
 import com.uas.search.b2b.model.Sort;
 import com.uas.search.b2b.util.SearchConstants;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.expression.AccessException;
 import org.springframework.ui.ModelMap;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
@@ -270,9 +271,12 @@ public class InviteRecordController {
      * @return
      */
     private Long checkByUserTel(Long userUU, String userTel) {
-        if (null != userTel) {
-            User user = userService.findUserByUserTel(userTel);
-            userUU = user.getUserUU();
+        if (StringUtils.isEmpty(userUU)) {
+            try {
+                throw new AccessException("userUU不能为空");
+            } catch (AccessException e) {
+                e.printStackTrace();
+            }
         }
         return userUU;
     }