|
|
@@ -16,6 +16,7 @@ import {
|
|
|
} from '../../../../../../Index'
|
|
|
import { identifier } from '@kit.AdsKit'
|
|
|
import { BusinessError } from '@kit.BasicServicesKit'
|
|
|
+import { tkAdHelper } from '../../../ads/tkAd/utils/TkAdHelper'
|
|
|
|
|
|
export class ContextHelper {
|
|
|
private static _oldContext: Context
|
|
|
@@ -92,6 +93,7 @@ export class ContextHelper {
|
|
|
if (isOnline) {
|
|
|
PersistentStorage.persistProp(AppStorageKeyCollect.TOKEN, '')
|
|
|
YTUserRequest.refreshUserInfo()
|
|
|
+ tkAdHelper.init()
|
|
|
} else {
|
|
|
PersistentStorage.persistProp(AppStorageKeyCollect.FIRST_ENTER_APP, false)
|
|
|
let isFirst = AppStorage.get(AppStorageKeyCollect.FIRST_ENTER_APP)! as boolean
|