wjc
2023-06-27 f8656588595af6cb716341b5daacba26e350a872
app/src/main/java/com/hdl/photovoltaic/other/HdlAccountLogic.java
@@ -122,6 +122,7 @@
        String requestUrl = HttpApi.POST_Login;
        JsonObject json = new JsonObject();
        json.addProperty("grantType", "refresh_token");
//        json.addProperty("refreshToken", UserConfigManage.getInstance().getRefreshToken());
        HttpClient.getInstance().requestHttp(requestUrl, json.toString(), true, true, new BaseSuccessFailureCallBeak() {
            @Override
@@ -147,6 +148,14 @@
    }
    /**
     * 退出登录时调用,清除推送数据
     */
    public void SignOutClearData() {
        String requestUrl = HttpApi.POST_GET_IMAGE_LOGOUT;
        //通知云端,已经退出登陆
    }
    public boolean isPhone(String phone) {
        Pattern p = Pattern.compile("^((13[0-9])|(14[0|5|6|7|9])|(15[0-3])|(15[5-9])|(16[6|7])|(17[2|3|5|6|7|8])|(18[0-9])|(19[1|8|9]))\\d{8}$");
        Matcher m = p.matcher(phone);