Commit 919ca7e5 by 霍志良

feat:华为渠道隐私协议动态开关,审核通过后默认勾选

parent 1799d203
......@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.48.75",
"m-consultant" : "0.0.59.36",
"m-fm" : "0.0.30.00",
"m-user" : "0.0.60.28",
"m-user" : "0.0.60.29",
"m-home" : "0.0.22.33",
"m-im" : "0.0.18.23",
"m-dynamic" : "0.0.7.13",
......@@ -33,7 +33,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.39.59",
"ydl-platform" : "0.0.39.60",
//第二步 若干
"ydl-webview" : "0.0.38.33",
......@@ -92,7 +92,7 @@ ext {
"m-confide" : "0.0.41.4",
"m-consultant" : "0.0.51.16",
"m-fm" : "0.0.23.5",
"m-user" : "0.0.41.7",
"m-user" : "0.0.41.8",
"m-home" : "0.0.6.28",
"m-im" : "0.0.3.14",
"m-dynamic" : "0.0.1.7",
......@@ -115,7 +115,7 @@ ext {
//-------------- 功能组件 --------------
//第一步
"ydl-platform" : "0.0.39.59",
"ydl-platform" : "0.0.39.60",
//第二步 若干
"ydl-webview" : "0.0.38.32",
......
......@@ -29,6 +29,7 @@ import com.umeng.socialize.UMShareConfig
import com.umeng.socialize.bean.SHARE_MEDIA
import com.ydl.ydlcommon.base.BaseApp
import com.ydl.ydlcommon.base.BaseMvpActivity
import com.ydl.ydlcommon.data.PlatformRamImpl
import com.ydl.ydlcommon.utils.ActivityManager
import com.ydl.ydlcommon.utils.StatusBarUtils
import com.ydl.ydlcommon.utils.YDLCacheUtils
......@@ -371,7 +372,8 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
var isAgreeProtocol =false
//华为渠道不默认勾选隐私协议,必须全局上下文才可以获取到渠道号。其他渠道默认勾选隐私协议
if (WalleChannelReader.getChannel(applicationContext)=="huawei"){
//protocol_android 1是开启华为渠道默认勾选,2是关闭华为渠道默认勾选,方便应用市场审核
if (WalleChannelReader.getChannel(applicationContext)=="huawei"&& PlatformRamImpl.getInstance().getGlobalInfo()?.info?.protocol_android==2){
iv_select_protocol.setImageResource(R.drawable.user_login_protocol_unselected)
}else{
isAgreeProtocol=true
......
......@@ -42,7 +42,7 @@ public class GlobalInfo implements Serializable{
public String notice_url;
public PayNotice pay_notice;
public int login_hide_wx; //1隐藏,0显示
public int protocol_android; //华为渠道隐私协议开关,1不默认勾选,2默认勾选
public static class PayNotice implements Serializable{
public String title;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment