修改app_source字段 google值8 链接值7

This commit is contained in:
Martin 2024-10-16 10:04:03 +08:00
parent 9e6443293d
commit 3c25547f04

View File

@ -17,6 +17,7 @@ import com.yunbao.common.interfaces.CommonCallback;
import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.MD5Util; import com.yunbao.common.utils.MD5Util;
import com.yunbao.common.utils.SpUtil; import com.yunbao.common.utils.SpUtil;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.VersionUtil; import com.yunbao.common.utils.VersionUtil;
import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.WordUtil;
import com.yunbao.main.utils.MacUitl; import com.yunbao.main.utils.MacUitl;
@ -56,31 +57,6 @@ public class MainHttpUtil {
} }
/**
* 第三方登录
*/
public static void loginByThird(String openid, String nicename, String avatar, String type, HttpCallback callback) {
String sign = MD5Util.getMD5("openid=" + openid + "&" + SALT);
String appSource = "3";
if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
appSource = "1";
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 2) {
appSource = "2";
}
HttpClient.getInstance().get("disanfangdenglu", MainHttpConsts.LOGIN_BY_THIRD)
.params("openid", openid)
.params("nicename", nicename)
.params("app_source", appSource)
.params("avatar", avatar)
.params("type", type)
.params("source", DEVICE)
.params("sign", sign)
.params("lastlogindevice", "Android")
.params("pushid", "")
.execute(callback);
}
/** /**
* 第三方登录---增加参数推广码,手机唯一标识 * 第三方登录---增加参数推广码,手机唯一标识
*/ */
@ -89,9 +65,9 @@ public class MainHttpUtil {
String sign = MD5Util.getMD5("openid=" + openid + "&" + SALT); String sign = MD5Util.getMD5("openid=" + openid + "&" + SALT);
String appSource = "3"; String appSource = "3";
if (CommonAppConfig.IS_GOOGLE_PLAY == 1) { if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
appSource = "1"; appSource = "8";
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 2) { } else if (CommonAppConfig.IS_GOOGLE_PLAY == 0) {
appSource = "2"; appSource = "7";
} }
HttpClient.getInstance().get("disanfangdenglu", MainHttpConsts.LOGIN_BY_THIRD) HttpClient.getInstance().get("disanfangdenglu", MainHttpConsts.LOGIN_BY_THIRD)
.params("openid", openid) .params("openid", openid)
@ -593,9 +569,9 @@ public class MainHttpUtil {
public static void register(String UserID, String agent_code,String invitecode, String user_login, String promo_code, String uuidDevice, int countryCode, String pass, String pass2, String code, HttpCallback callback) { public static void register(String UserID, String agent_code,String invitecode, String user_login, String promo_code, String uuidDevice, int countryCode, String pass, String pass2, String code, HttpCallback callback) {
String appSource = "3"; String appSource = "3";
if (CommonAppConfig.IS_GOOGLE_PLAY == 1) { if (CommonAppConfig.IS_GOOGLE_PLAY == 1) {
appSource = "1"; appSource = "8";
} else if (CommonAppConfig.IS_GOOGLE_PLAY == 2) { } else if (CommonAppConfig.IS_GOOGLE_PLAY == 0) {
appSource = "2"; appSource = "7";
} }
HttpClient.getInstance().get("huiyuanzhuce", MainHttpConsts.REGISTER) HttpClient.getInstance().get("huiyuanzhuce", MainHttpConsts.REGISTER)
.params("user_login", user_login) .params("user_login", user_login)