@Override
	public String isUser(String userJson) {
		JSONObject json = null;
		Connection con = DBUtil2.getConnection();
		PreparedStatement ps = null;
		String realPwd = null;
		String areaid = null;
		String sql = "select password,area_id from userinfo t where username = ?";
		try {
			json = new JSONObject(userJson);
			User user = new User();
			if(json.has("User")&&json.has("Password")){
				user.setName(json.getString("User"));
				user.setPassword(json.getString("Password"));
				ps = con.prepareStatement(sql);
				ps.setString(1, user.getName());
				ResultSet rs = ps.executeQuery();
				if(rs.next()){
					realPwd = rs.getString("password");
					areaid = rs.getString("area_id");
					if(user.getPassword().equals(getMD5(realPwd))){
						return areaid;
					}
				}
			}
		} catch (JSONException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				con.close();
				if(ps!=null){
					ps.close();
				}
			} catch (SQLException e) {
				e.printStackTrace();
			}
			DBUtil2.closeConnection();
		}
		return "error";
	}