jiapeng 7 anos atrás
pai
commit
886b5951f6

+ 4 - 1
src/main/java/com/ekexiu/portal/service/SysService.java

@ -1791,8 +1791,11 @@ public class SysService {
1791 1791
	 */
1792 1792
	@Get
1793 1793
	@Path("/regmobilephone")
1794
	public String regMobilePhone(@JdbcConn(false) Connection con, String mobilePhone, @DefaultValue("true") boolean checkExists)
1794
	public String regMobilePhone(@JdbcConn(false) Connection con, String mobilePhone, @DefaultValue("true") boolean checkExists,String vcode,@SessionVal(value="verification",remove=true) String scode)
1795 1795
			throws JfwBaseException, SQLException {
1796
		if(!vcode.equals(scode)){
1797
			throw new JfwBaseException(1, "valid code error");
1798
		}
1796 1799
		if (checkExists) {
1797 1800
			User user = this.userDao.queryByEmailOrMobilePhone(con, mobilePhone);
1798 1801
			if (null != user) {