From a1633e345646ccd44103a1c7746059fa853d8d3c Mon Sep 17 00:00:00 2001 From: 18142669586 <1669783059@qq.com> Date: Fri, 7 Oct 2022 16:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B3=A8=E5=86=8C=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E6=B3=A8=E5=86=8C=E7=9A=84=E6=9D=A5=E6=BA=90?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/shayu/phonelive/AppContext.java | 2 +- main/src/main/java/com/yunbao/main/http/MainHttpUtil.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index 2bb3555c2..95bfb8add 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -147,7 +147,7 @@ public class AppContext extends CommonAppContext { String environment = AdjustConfig.ENVIRONMENT_PRODUCTION; AdjustConfig config = new AdjustConfig(this, "3om5fbglyqdc", environment); if (CommonAppConfig.IS_GOOGLE_PLAY == false) { - config.setDefaultTracker("{xa7k5ut}"); + config.setDefaultTracker("xa7k5ut"); } Adjust.onCreate(config); registerActivityLifecycleCallbacks(new AdjustLifecycleCallbacks()); diff --git a/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java b/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java index 515da50d2..9e49a4473 100644 --- a/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java +++ b/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java @@ -61,7 +61,7 @@ public class MainHttpUtil { HttpClient.getInstance().get("Login.userLoginByThird", MainHttpConsts.LOGIN_BY_THIRD) .params("openid", openid) .params("nicename", nicename) - .params("app_project", "1") + .params("app_source", CommonAppConfig.IS_GOOGLE_PLAY==true?"1":"3") .params("avatar", avatar) .params("type", type) .params("source", DEVICE) @@ -80,7 +80,7 @@ public class MainHttpUtil { String sign = MD5Util.getMD5("openid=" + openid + "&" + SALT); HttpClient.getInstance().get("Login.userLoginByThird", MainHttpConsts.LOGIN_BY_THIRD) .params("openid", openid) - .params("app_project", "1") + .params("app_source", CommonAppConfig.IS_GOOGLE_PLAY==true?"1":"3") .params("admin_id", promoCode) .params("uuid_Device", uuidDevice) .params("nicename", nicename) @@ -552,7 +552,7 @@ public class MainHttpUtil { public static void register(String invitecode, String user_login, String promo_code, String uuidDevice, int countryCode, String pass, String pass2, String code, HttpCallback callback) { HttpClient.getInstance().get("Login.userReg", MainHttpConsts.REGISTER) .params("user_login", user_login) - .params("app_project", "1") + .params("app_source", CommonAppConfig.IS_GOOGLE_PLAY==true?"1":"3") //增加参数:推广码 .params("user_activation_key", promo_code) .params("admin_id", promo_code)