Commit 27dc32db authored by mengcuiguang's avatar mengcuiguang

开屏优化

parent 56ccb7e1
......@@ -9,9 +9,9 @@ import mobi.oneway.export.Ad.OnewaySdk
*/
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
import com.mints.flowbox.mvp.views.SplashView
import com.mints.library.net.neterror.BaseSubscriber
import com.mints.library.net.neterror.Throwable
import java.util.HashMap
class SplashPresenter : BasePresenter<SplashView>() {
fun getCloseNeedInitAppsCount() {
view.showLoading("加载中...")
val vo = HashMap<String, Any>()
vo["os"] = "Android"
AppHttpManager.getInstance(loanApplication)
.call(loanService.getCloseNeedInitAppsCount(),
.call(loanService.getCloseNeedInitAppsCount(vo),
object : BaseSubscriber<BaseResponse<SplashAppBean>>() {
override fun onCompleted() {
if (isLinkView) return
......
......@@ -503,7 +503,7 @@ public interface LoanService {
* 启动页获取反策略个数
*/
@POST("common/getCloseNeedInitAppsCount")
Observable<BaseResponse<SplashAppBean>> getCloseNeedInitAppsCount();
Observable<BaseResponse<SplashAppBean>> getCloseNeedInitAppsCount(@Body Map<String, Object> vo);
/**
* 默认http工厂
......
......@@ -288,22 +288,12 @@ public class SplashGroMoreActivity extends BaseActivity implements SplashView {
* 跳转到主页面
*/
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");
if (TextUtils.equals(channel, Constant.CHANNEL_SHARE) && !UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity.class);
} else {
readyGoThenKill(MainActivity.class);
}
// }
// mSplashContainer.removeAllViews();
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