Commit 8a460256 authored by wanglei's avatar wanglei

启动页对齐正式版本,添加通知跳转上报

parent d26e0468
package com.zxhyis.toolss.ad package com.zxhyis.toolss.ad
import android.text.TextUtils import android.text.TextUtils
import com.blankj.utilcode.util.SPUtils
import com.zxhyis.toolss.FileApp import com.zxhyis.toolss.FileApp
import com.zxhyis.toolss.ad.bean.AdsCfg
import org.json.JSONObject
object AdUtils { object AdUtils {
...@@ -58,5 +61,14 @@ object AdUtils { ...@@ -58,5 +61,14 @@ object AdUtils {
return (System.currentTimeMillis() - lastPushTime) / 1000 > interval return (System.currentTimeMillis() - lastPushTime) / 1000 > interval
} }
fun getLoadingTime() {
val obj = JSONObject(ComUtils.getComConfigString())
val adCig = obj.getJSONObject("ads_cfg")
val adObj = adCig.getJSONObject("splash_slot")
val entity: AdsCfg.AdEntity = AdsCfg.AdEntity()
entity.loading_page_time = adObj.optInt("loading_page_time", 0)
SPUtils.getInstance().put("loading_page_time", adObj.optInt("loading_page_time", 0))
}
} }
\ No newline at end of file
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