diff --git a/pom.xml b/pom.xml
index e749752..099c654 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,8 +8,9 @@
10.0-FEATURE-SNAPSHOT
yyyyMMdd
- ${version}
+ ${project.version}
${maven.build.timestamp}
+ UTF-8
@@ -129,9 +130,10 @@
- ${project.artifactId}-${version}-${maven.build.timestamp}
+ ${project.artifactId}-${project.version}-${maven.build.timestamp}
+ org.apache.maven.plugins
maven-compiler-plugin
3.1
@@ -141,17 +143,10 @@
none
-
- org.apache.maven.plugins
- maven-compiler-plugin
-
-
- 8
-
-
org.apache.maven.plugins
maven-jar-plugin
+ 3.1.2
diff --git a/src/main/java/com/fanruan/api/decision/user/UserKit.java b/src/main/java/com/fanruan/api/decision/user/UserKit.java
index eeb1429..6375a0e 100644
--- a/src/main/java/com/fanruan/api/decision/user/UserKit.java
+++ b/src/main/java/com/fanruan/api/decision/user/UserKit.java
@@ -7,6 +7,7 @@ import com.fr.decision.webservice.utils.user.source.UserSource;
import com.fr.decision.webservice.v10.user.UserService;
import javax.servlet.http.HttpServletRequest;
+import java.util.List;
/**
* @author richie
@@ -63,4 +64,15 @@ public class UserKit {
public static void add(OpenUser user) throws Exception {
AuthorityContext.getInstance().getUserController().update(user.select());
}
+
+ /**
+ * 通过邮箱获取用户名数组
+ *
+ * @param email 邮箱
+ * @return 用户名数组
+ * @throws Exception 如果邮箱不存在则抛出此异常
+ */
+ public static List getUserNamesFromEmail(String email) throws Exception {
+ return UserService.getInstance().getUserNamesFromEmail(email);
+ }
}