lunchviewcontroller中添加debug判断

This commit is contained in:
bluesea 2024-06-05 10:50:14 +08:00
parent 475a5d56c4
commit 7a5785fb5d

View File

@ -31,6 +31,28 @@ class MP_LunchViewController: UIViewController {
timer.add(to: RunLoop.current, forMode: .common)
//idfa
_ = requestTrackingAuthorization(self)
#if DEBUG
self.completionBlock = {
DispatchQueue.main.async {
[weak self] in
guard let self = self else {return}
//
timer.isPaused = true
//
accessAppdelegate.switch_positive()
}
}
#else
chekStatus()
#endif
//
timer.isPaused = false
}
//status
func chekStatus() {
MP_AnalyticsManager.shared.getOpenStatus { [weak self] open in
guard let self = self else {return}
if open {
@ -79,9 +101,9 @@ class MP_LunchViewController: UIViewController {
}
}
}
//
timer.isPaused = false
}
deinit {
//
timer.invalidate()