Commit 27dc32db authored by mengcuiguang's avatar mengcuiguang

开屏优化

parent 56ccb7e1
...@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk ...@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk
*/ */
object OwManager { object OwManager {
private const val PUBLISH_ID = "01c3abd797b74730" private const val PUBLISH_ID = ""
const val REWARD_PID = "6NQKNKC7WNA4XL8Q" const val REWARD_PID = ""
/** /**
* 初始化 * 初始化
......
...@@ -6,14 +6,16 @@ import com.mints.flowbox.mvp.model.SplashAppBean ...@@ -6,14 +6,16 @@ import com.mints.flowbox.mvp.model.SplashAppBean
import com.mints.flowbox.mvp.views.SplashView import com.mints.flowbox.mvp.views.SplashView
import com.mints.library.net.neterror.BaseSubscriber import com.mints.library.net.neterror.BaseSubscriber
import com.mints.library.net.neterror.Throwable import com.mints.library.net.neterror.Throwable
import java.util.HashMap
class SplashPresenter : BasePresenter<SplashView>() { class SplashPresenter : BasePresenter<SplashView>() {
fun getCloseNeedInitAppsCount() { fun getCloseNeedInitAppsCount() {
view.showLoading("加载中...") view.showLoading("加载中...")
val vo = HashMap<String, Any>()
vo["os"] = "Android"
AppHttpManager.getInstance(loanApplication) AppHttpManager.getInstance(loanApplication)
.call(loanService.getCloseNeedInitAppsCount(), .call(loanService.getCloseNeedInitAppsCount(vo),
object : BaseSubscriber<BaseResponse<SplashAppBean>>() { object : BaseSubscriber<BaseResponse<SplashAppBean>>() {
override fun onCompleted() { override fun onCompleted() {
if (isLinkView) return if (isLinkView) return
......
...@@ -503,7 +503,7 @@ public interface LoanService { ...@@ -503,7 +503,7 @@ public interface LoanService {
* 启动页获取反策略个数 * 启动页获取反策略个数
*/ */
@POST("common/getCloseNeedInitAppsCount") @POST("common/getCloseNeedInitAppsCount")
Observable<BaseResponse<SplashAppBean>> getCloseNeedInitAppsCount(); Observable<BaseResponse<SplashAppBean>> getCloseNeedInitAppsCount(@Body Map<String, Object> vo);
/** /**
* 默认http工厂 * 默认http工厂
......
...@@ -288,22 +288,12 @@ public class SplashGroMoreActivity extends BaseActivity implements SplashView { ...@@ -288,22 +288,12 @@ public class SplashGroMoreActivity extends BaseActivity implements SplashView {
* 跳转到主页面 * 跳转到主页面
*/ */
private void goToMainActivity() { private void goToMainActivity() {
// int customVersion = AppPreferencesManager.INSTANCE.get().getInt(Constant.CUSTOM_VERSION, 0);
// boolean isFirstEnter = AppPreferencesManager.INSTANCE.get().getBoolean(Constant.ISFIRSTENTER + customVersion, true);
// if (isFirstEnter) {
// readyGoThenKill(GuideActivity.class);
// } else {
String channel = CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME"); String channel = CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME");
if (TextUtils.equals(channel, Constant.CHANNEL_SHARE) && !UserManager.getInstance().userIsLogin()) { if (TextUtils.equals(channel, Constant.CHANNEL_SHARE) && !UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity.class); readyGo(WxLoginActivity.class);
} else { } else {
readyGoThenKill(MainActivity.class); readyGoThenKill(MainActivity.class);
} }
// }
// mSplashContainer.removeAllViews();
readyGoThenKill(MainActivity.class); readyGoThenKill(MainActivity.class);
} }
......
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