修改超时
This commit is contained in:
parent
17894d4301
commit
0d4ebde870
44
ips.txt
44
ips.txt
@ -1,40 +1,4 @@
|
|||||||
172.29.107.21
|
172.29.131.10
|
||||||
172.29.109.20
|
172.29.105.14
|
||||||
172.29.109.12
|
172.29.105.29
|
||||||
172.29.107.28
|
172.29.131.20
|
||||||
172.29.109.19
|
|
||||||
172.30.8.124
|
|
||||||
172.29.107.14
|
|
||||||
172.29.107.15
|
|
||||||
172.29.109.22
|
|
||||||
172.29.107.22
|
|
||||||
172.29.107.27
|
|
||||||
172.29.107.24
|
|
||||||
172.29.107.29
|
|
||||||
172.29.109.15
|
|
||||||
172.29.109.28
|
|
||||||
172.29.107.11
|
|
||||||
172.29.107.23
|
|
||||||
172.29.107.13
|
|
||||||
172.29.107.16
|
|
||||||
172.29.109.27
|
|
||||||
172.29.107.18
|
|
||||||
172.29.109.21
|
|
||||||
172.29.109.14
|
|
||||||
172.29.109.33
|
|
||||||
172.29.109.31
|
|
||||||
172.29.107.32
|
|
||||||
172.29.109.16
|
|
||||||
172.29.107.20
|
|
||||||
172.29.109.13
|
|
||||||
172.29.109.25
|
|
||||||
172.29.107.30
|
|
||||||
172.29.107.26
|
|
||||||
172.29.109.18
|
|
||||||
172.29.107.17
|
|
||||||
172.29.107.12
|
|
||||||
172.29.107.25
|
|
||||||
172.29.109.32
|
|
||||||
172.30.8.125
|
|
||||||
172.29.109.17
|
|
||||||
172.29.109.24
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@ target 'playbtest' do
|
|||||||
# Pods for playbtest
|
# Pods for playbtest
|
||||||
|
|
||||||
pod 'AppLovinSDK','13.3.1'
|
pod 'AppLovinSDK','13.3.1'
|
||||||
pod 'AppLovinDSPLinkedInAdapter'
|
|
||||||
pod 'AppLovinMediationVungleAdapter'
|
pod 'AppLovinMediationVungleAdapter'
|
||||||
pod 'AppLovinMediationMintegralAdapter'
|
pod 'AppLovinMediationMintegralAdapter'
|
||||||
|
|
||||||
|
|||||||
@ -248,7 +248,7 @@ class BbbAdManager: NSObject {
|
|||||||
|
|
||||||
var openADTimer:Timer?
|
var openADTimer:Timer?
|
||||||
let kOpenADPerSec: CGFloat = 0.1 // 假设的秒数
|
let kOpenADPerSec: CGFloat = 0.1 // 假设的秒数
|
||||||
let kOpenAdCTimeLength: CGFloat = 40 // 假设的超时时长
|
let kOpenAdCTimeLength: CGFloat = 120 // 假设的超时时长
|
||||||
|
|
||||||
static var totalTimeC: CGFloat = 0.0
|
static var totalTimeC: CGFloat = 0.0
|
||||||
|
|
||||||
@ -436,6 +436,11 @@ class BbbAdManager: NSObject {
|
|||||||
BbbAdManager.totalTimeC += kOpenADPerSec
|
BbbAdManager.totalTimeC += kOpenADPerSec
|
||||||
|
|
||||||
if BbbAdManager.shared.isEnd() || BbbAdManager.totalTimeC >= kOpenAdCTimeLength {
|
if BbbAdManager.shared.isEnd() || BbbAdManager.totalTimeC >= kOpenAdCTimeLength {
|
||||||
|
DispatchQueue.global(qos: .utility).async { [weak self] in
|
||||||
|
guard self != nil else { return }
|
||||||
|
let time:Int = Int(BbbAdManager.totalTimeC * 1000)
|
||||||
|
YL_NetWorkManager.uploadAD_Load(adid: "", ecpm: 0.0, network: "", countryCode: "", platformResponseTime:0.0 , dsp: "", loadTime:time,succeed:false,errorMsg: "load timeout > 120s")
|
||||||
|
}
|
||||||
NSLog("xyz 1")
|
NSLog("xyz 1")
|
||||||
openADTimer?.invalidate()
|
openADTimer?.invalidate()
|
||||||
openADTimer = nil
|
openADTimer = nil
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user