jiapeng 7 years ago
parent
commit
886b5951f6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/java/com/ekexiu/portal/service/SysService.java

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

1791
	 */
1791
	 */
1792
	@Get
1792
	@Get
1793
	@Path("/regmobilephone")
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
			throws JfwBaseException, SQLException {
1795
			throws JfwBaseException, SQLException {
1796
		if(!vcode.equals(scode)){
1797
			throw new JfwBaseException(1, "valid code error");
1798
		}
1796
		if (checkExists) {
1799
		if (checkExists) {
1797
			User user = this.userDao.queryByEmailOrMobilePhone(con, mobilePhone);
1800
			User user = this.userDao.queryByEmailOrMobilePhone(con, mobilePhone);
1798
			if (null != user) {
1801
			if (null != user) {