Commit aca00d74 authored by wanglei's avatar wanglei

...

parent 35878617
...@@ -270,7 +270,7 @@ class MyApplication : Application() { ...@@ -270,7 +270,7 @@ class MyApplication : Application() {
//广告 //广告
AdConfigBean.adsConfigBean = configBean.adConfigBean AdConfigBean.adsConfigBean = configBean.adConfigBean
LogEx.logDebug("initConfig", "adsConfigBean=${AdConfigBean.adsConfigBean.timeInterval}") LogEx.logDebug("initConfig", "adsConfigBean=${AdConfigBean.adsConfigBean.numDisplayLimit}")
//通知 //通知
PopupConfigBean.popupConfigBean = configBean.popupConfigBean PopupConfigBean.popupConfigBean = configBean.popupConfigBean
......
...@@ -59,7 +59,7 @@ abstract class AdEvent { ...@@ -59,7 +59,7 @@ abstract class AdEvent {
obj.put("req_id", reqId) obj.put("req_id", reqId)
obj.put("from", from) obj.put("from", from)
EventUtils.event("ad_limit", value, obj) EventUtils.event("ad_limit", value, obj)
LogEx.logDebug(TAG, "ad_limit $obj") LogEx.logDebug(TAG, "ad_limit $value $obj")
} }
......
package com.base.scanqr.ads package com.base.scanqr.ads
import android.app.Activity import android.app.Activity
import android.app.Dialog import android.app.Dialog
import java.lang.ref.WeakReference import java.lang.ref.WeakReference
...@@ -55,6 +56,10 @@ class AdState<T>() { ...@@ -55,6 +56,10 @@ class AdState<T>() {
fun onAdHidden() { fun onAdHidden() {
// 广告关闭,清空缓存数据,重新加载 // 广告关闭,清空缓存数据,重新加载
showingAd = false showingAd = false
//重置下上次展示的时间,避免看广告的时间算入间隔
lastShowTime = System.currentTimeMillis()
} }
fun onAdDisplayFailed() { fun onAdDisplayFailed() {
......
...@@ -16,7 +16,6 @@ dependencyResolutionManagement { ...@@ -16,7 +16,6 @@ dependencyResolutionManagement {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven("https://maven.google.com'")
maven("https://s01.oss.sonatype.org/content/groups/public") maven("https://s01.oss.sonatype.org/content/groups/public")
maven("https://jitpack.io") maven("https://jitpack.io")
maven("https://android-sdk.is.com") maven("https://android-sdk.is.com")
......
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