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)