From 9e5427bd35647e398a611eb342869a0e20564a16 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Sun, 7 Apr 2024 09:54:45 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8A=A0=E4=B8=AD=E8=8B=B1=E6=96=87=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/http/PDLiveApi.java | 3 ++- .../main/java/com/yunbao/common/http/main/MainNetManager.java | 3 ++- main/src/main/java/com/yunbao/main/http/MainHttpUtil.java | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java index c656fedea..ab4c92838 100644 --- a/common/src/main/java/com/yunbao/common/http/PDLiveApi.java +++ b/common/src/main/java/com/yunbao/common/http/PDLiveApi.java @@ -110,7 +110,8 @@ public interface PDLiveApi { @Field("user_pass") String passWord, @Field("uuid_Device") String uuidDevice, @Field("pushid") String pushid, - @Field("lastlogindevice") String lastlogindevice + @Field("lastlogindevice") String lastlogindevice, + @Field("langue")String langue ); /** diff --git a/common/src/main/java/com/yunbao/common/http/main/MainNetManager.java b/common/src/main/java/com/yunbao/common/http/main/MainNetManager.java index cea6a102a..38731b326 100644 --- a/common/src/main/java/com/yunbao/common/http/main/MainNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/main/MainNetManager.java @@ -13,6 +13,7 @@ import com.yunbao.common.http.API; import com.yunbao.common.http.ResponseData; import com.yunbao.common.http.ResponseModel; import com.yunbao.common.http.base.HttpCallback; +import com.yunbao.common.utils.WordUtil; import java.util.HashMap; import java.util.List; @@ -54,7 +55,7 @@ public class MainNetManager { * @param callback 网络请求回调 */ public void login(String phoneNum, String pwd, String uuid, HttpCallback callback) { - API.get().pdLiveApi(mContext).loginByManager(phoneNum, pwd, uuid, "", "Android") + API.get().pdLiveApi(mContext).loginByManager(phoneNum, pwd, uuid, "", "Android", WordUtil.isNewZh()?"chinese":"english") .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Consumer>() { 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 0a29ea40c..48ad065a4 100644 --- a/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java +++ b/main/src/main/java/com/yunbao/main/http/MainHttpUtil.java @@ -51,6 +51,7 @@ public class MainHttpUtil { .params("pushid", "") .params("lastlogindevice", "Android") .params("uuid_Device", uuid) + .params("langue", WordUtil.isNewZh()?"chinese":"english") .execute(callback); }