7 次代碼提交 2463ffeae4 ... 9c1e33873e

作者 SHA1 備註 提交日期
  litchi98 9c1e33873e [New]更新签名文件 1 月之前
  litchi98 747a24890e [New]扫描前广告触发场景适配 1 月之前
  litchi98 8b1cbc1972 [New]图文记录 initial commit 1 月之前
  litchi98 00743aac84 [New]更换通用请求参数 3 周之前
  litchi98 2463ffeae4 [New]更新签名文件 1 月之前
  litchi98 6e35773c94 [New]扫描前广告触发场景适配 1 月之前
  litchi98 6b15477e30 [New]图文记录 initial commit 1 月之前
共有 1 個文件被更改,包括 2 次插入33 次删除
  1. 2 33
      app/src/main/java/com/datarecovery/master/data/api/request/BaseRequest.java

+ 2 - 33
app/src/main/java/com/datarecovery/master/data/api/request/BaseRequest.java

@@ -1,38 +1,7 @@
 package com.datarecovery.master.data.api.request;
 
-import com.atmob.user.param.AtmobParams;
-import com.datarecovery.master.BuildConfig;
-import com.datarecovery.master.data.repositories.AccountRepository;
-import com.google.gson.annotations.SerializedName;
+import com.atmob.auth.dto.CommonRequest;
 
-import java.lang.reflect.Field;
+public class BaseRequest extends CommonRequest {
 
-public class BaseRequest extends AtmobParams {
-
-    @SerializedName("appPlatform")
-    private final int appPlatform;
-
-    @SerializedName("authToken")
-    private String authToken;
-
-
-    public BaseRequest() {
-        this.appPlatform = 1;
-        this.authToken = AccountRepository.token;
-//        if (BuildConfig.DEBUG) {
-//            try {
-//                Field androidId = AtmobParams.class.getDeclaredField("androidId");
-//                androidId.setAccessible(true);
-//                androidId.set(this, "6713123wdq22e1232");
-//            } catch (NoSuchFieldException e) {
-//
-//            } catch (IllegalAccessException e) {
-//
-//            }
-//        }
-    }
-
-    public int getAppPlatform() {
-        return appPlatform;
-    }
 }