Commit 260c5fa2 by 霍志良

Merge remote-tracking branch 'origin/4.1.64' into 4.1.64

parents fa6bb25f 3631faf9
...@@ -70,10 +70,6 @@ ...@@ -70,10 +70,6 @@
android:screenOrientation="portrait" android:screenOrientation="portrait"
android:theme="@style/platform_NoTitleTheme" /> android:theme="@style/platform_NoTitleTheme" />
<activity <activity
android:name=".ui.AliAuthDemoActivity"
android:screenOrientation="portrait"
android:theme="@style/platform_NoTitleTheme" />
<activity
android:name=".wxapi.WXEntryActivity" android:name=".wxapi.WXEntryActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTop" /> android:launchMode="singleTop" />
......
...@@ -191,7 +191,7 @@ object OneKeyLoginHelp { ...@@ -191,7 +191,7 @@ object OneKeyLoginHelp {
RelativeLayout.LayoutParams.WRAP_CONTENT RelativeLayout.LayoutParams.WRAP_CONTENT
) )
tvAuthParams.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE) tvAuthParams.addRule(RelativeLayout.CENTER_HORIZONTAL, RelativeLayout.TRUE)
tvAuthParams.setMargins(0, RxImageTool.dp2px(250f), 0, 0) tvAuthParams.setMargins(0, RxImageTool.dp2px(235f), 0, 0)
when (phoneNumberAuthHelper.currentCarrierName) { when (phoneNumberAuthHelper.currentCarrierName) {
"CUCC" -> { "CUCC" -> {
tvAuth.text = "中国联通提供认证服务" tvAuth.text = "中国联通提供认证服务"
...@@ -273,11 +273,11 @@ object OneKeyLoginHelp { ...@@ -273,11 +273,11 @@ object OneKeyLoginHelp {
.setSloganHidden(true) // 设置slogan是否隐藏 .setSloganHidden(true) // 设置slogan是否隐藏
.setNumberColor(Color.parseColor("#242424")) .setNumberColor(Color.parseColor("#242424"))
.setNumberSize(24) .setNumberSize(24)
.setNumFieldOffsetY(215) .setNumFieldOffsetY(200)
.setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片 .setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片
.setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮文字颜色 .setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮文字颜色
.setLogBtnTextSize(15) .setLogBtnTextSize(17)
.setLogBtnMarginLeftAndRight(40) // 设置登录按钮距离左右距离 .setLogBtnMarginLeftAndRight(23) // 设置登录按钮距离左右距离
.setLogBtnHeight(78) .setLogBtnHeight(78)
.setSwitchAccText("切换号码") .setSwitchAccText("切换号码")
.setSwitchAccTextSize(15) .setSwitchAccTextSize(15)
...@@ -325,10 +325,10 @@ object OneKeyLoginHelp { ...@@ -325,10 +325,10 @@ object OneKeyLoginHelp {
.setNumFieldOffsetY(unit +10) .setNumFieldOffsetY(unit +10)
.setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片 .setLogBtnBackgroundPath("bg_one_click_login") // 设置登录按钮背景图片
.setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮颜色 .setLogBtnTextColor(Color.parseColor("#ffffff")) // 设置登录按钮颜色
.setLogBtnTextSize(16) .setLogBtnTextSize(17)
.setLogBtnMarginLeftAndRight(35) // 设置登录按钮距离左右距离 .setLogBtnMarginLeftAndRight(23) // 设置登录按钮距离左右距离
.setLogBtnHeight(78) .setLogBtnHeight(78)
.setLogBtnOffsetY((unit * 2.5).toInt()) .setLogBtnOffsetY(unit * 3-4)
.setSwitchAccText("其它方式登录") .setSwitchAccText("其它方式登录")
.setSwitchAccTextSize(15) .setSwitchAccTextSize(15)
.setSwitchAccTextColor(Color.parseColor("#666666")) .setSwitchAccTextColor(Color.parseColor("#666666"))
...@@ -361,13 +361,13 @@ object OneKeyLoginHelp { ...@@ -361,13 +361,13 @@ object OneKeyLoginHelp {
} }
} }
ResultCode.CODE_SUCCESS -> { // 获取token成功 ResultCode.CODE_SUCCESS -> { // 获取token成功
val param = PhoneLoginAutoParam(tokenRet.token, JPushUtils.getRegistrationID(),2,2,"", val param = PhoneLoginAutoParam(tokenRet.token, JPushUtils.getRegistrationID(),2,2,"", RxAppTool.getAppVersionName(BaseApp.Companion.getApp()))
RxAppTool.getAppVersionName(BaseApp.Companion.getApp()))
LoginApiRequestUtil.autoLogin(param) LoginApiRequestUtil.autoLogin(param)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe({ .subscribe({
if (it.code == 200) { if (it.code == 200) {
ToastUtil.toastShort("登录成功")
saveUserData(it.data) saveUserData(it.data)
if (it.data.firstLogin == 1) {//第一次登录:是注册 if (it.data.firstLogin == 1) {//第一次登录:是注册
StatusUtils.isFirstLogin = true StatusUtils.isFirstLogin = true
......
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="5dp"
android:text="欢迎使用阿里巴巴本机认证服务"
android:textColor="#ff5000"
android:textSize="18dp" />
</LinearLayout>
<TextView
android:id="@+id/operator_name_tv"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="15dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<Button
android:id="@+id/login_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_marginTop="10dp"
android:layout_weight="1"
android:background="@color/platform_gray7"
android:text="获取登录Token" />
<Button
android:id="@+id/vaild_button"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:layout_weight="1"
android:background="@color/platform_gray7"
android:text="获取认证token" />
</LinearLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
...@@ -52,8 +52,8 @@ javaapi.test = https://testapi.ydl.com/api/ ...@@ -52,8 +52,8 @@ javaapi.test = https://testapi.ydl.com/api/
javaapi.auto_test = https://auto_testapi.ydl.com/api/ javaapi.auto_test = https://auto_testapi.ydl.com/api/
javaapi.prod = https://api.ydl.com/api/ javaapi.prod = https://api.ydl.com/api/
# 开启网关加密appKey和appSecret # 网关加密的appKey和appSecret
appKey.test = 20BB42485BD448DE888DD745899C457D appKey.test = 20BB42485BD448DE888DD745899C457D
appSecret.test = ABA88F2FF7E64A688D2213B20A9B3A3E appSecret.test = ABA88F2FF7E64A688D2213B20A9B3A3E
appKey.prod = appKey.prod = 49A4A1BBFBC74CA2B0B5C6B77FF13A80
appSecret.prod = appSecret.prod = ABA88F2FF7E64A688D2213B20A9B3A3E
...@@ -720,7 +720,11 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -720,7 +720,11 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
if (overridePayUrl != null) { if (overridePayUrl != null) {
return overridePayUrl; return overridePayUrl;
} }
if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
if (!TextUtils.isEmpty(url)&&url.endsWith(".apk")){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
loadUrl(setUrlHeightParams(url)); loadUrl(setUrlHeightParams(url));
} else { } else {
if (YDLRouterManager.Companion.router(url)) { if (YDLRouterManager.Companion.router(url)) {
...@@ -799,8 +803,10 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -799,8 +803,10 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
return overridePayUrl; return overridePayUrl;
} }
if (!TextUtils.isEmpty(url)&&url.endsWith(".apk")){
if (!TextUtils.isEmpty(url) && url.startsWith("http")) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
} else if (!TextUtils.isEmpty(url) && url.startsWith("http")) {
loadUrl(setUrlHeightParams(url)); loadUrl(setUrlHeightParams(url));
} else { } else {
if (YDLRouterManager.Companion.router(url)) { if (YDLRouterManager.Companion.router(url)) {
......
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