Commit a2b2c13c authored by mengcuiguang2's avatar mengcuiguang2

代码优化

parent 9cbf0f08
......@@ -332,13 +332,13 @@ public interface LoanService {
/**
* 支付宝提交
*/
@POST("roseApi/user/reportAlipayMsg")
@POST("api/user/reportAlipayMsg")
Observable<BaseResponse<Object>> reportAlipayMsg(@Body Map<String, Object> vo);
/**
* 获取支付宝授权
*/
@POST("roseApi/user/getAlipayAuthUrl")
@POST("api/user/getAlipayAuthUrl")
Observable<BaseResponse<JsonObject>> getAlipayAuthUrl(@Body Map<String, Object> vo);
/**
......
......@@ -146,7 +146,11 @@ class SplashActivity : BaseActivity() {
* 跳转到主页面
*/
private fun goToMainActivity() {
readyGoThenKill(MainActivity::class.java)
if (!UserManager.getInstance().userIsLogin()) {
readyGo(AlipayLoginActivity::class.java)
} else {
readyGoThenKill(MainActivity::class.java)
}
}
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
......
......@@ -95,7 +95,11 @@ class SplashAdActivity : BaseActivity() {
* 跳转到主页面
*/
private fun goToMainActivity() {
readyGoThenKill(MainActivity::class.java)
if (!UserManager.getInstance().userIsLogin()) {
readyGo(AlipayLoginActivity::class.java)
} else {
readyGoThenKill(MainActivity::class.java)
}
}
/**
......
......@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<!-- 填充的颜色 -->
<solid android:color="#4BB93F" />
<solid android:color="#1caceb" />
<!-- 设置按钮的四个角为弧形 -->
<!-- android:radius 弧形的半径 -->
<corners android:radius="30dip" />
......
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