From 57e30bc2584b92ce3da3821bd0f6e040f2ad28df Mon Sep 17 00:00:00 2001
From: admin <lrj@aelines-MacBook-Air.local>
Date: 星期五, 21 四月 2023 18:08:07 +0800
Subject: [PATCH] 抖音SDK 升级,个人中心bug修改,增加

---
 BuWanVideo2.0/Recommend/RecommendMainController.m |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/BuWanVideo2.0/Recommend/RecommendMainController.m b/BuWanVideo2.0/Recommend/RecommendMainController.m
index 11ae992..3da8995 100644
--- a/BuWanVideo2.0/Recommend/RecommendMainController.m
+++ b/BuWanVideo2.0/Recommend/RecommendMainController.m
@@ -12,6 +12,7 @@
 #import "ListController.h"
 #import <BUAdSDK/BUAdSDK.h>
 #import "DYGridVideoController.h"
+#import "UIView+Toast.h"
 
 @interface RecommendMainController () <ZJScrollPageViewDelegate,BUNativeExpressFullscreenVideoAdDelegate>
 
@@ -70,7 +71,8 @@
     
     [[YTHNetInterface startInterface] getVideoClassWithUid:[YTHsharedManger startManger].Uid WithSystem:@"1" withBlock:^(BOOL isSuccessful, id result, NSString *error) {
         if (isSuccessful) {
-            
+            [self.arrayClassName removeAllObjects];
+            [self.arrayKeyName removeAllObjects];
             for (int i = 0; i < [result[@"Data"][@"data"] count]; i++) {
                 [self.arrayClassName addObject:result[@"Data"][@"data"][i][@"Name"]];
                 [self.arrayKeyName addObject:result[@"Data"][@"data"][i]];
@@ -262,13 +264,14 @@
 - (void)loadFullscreenVideoAd {
     id interstitial=[YTHsharedManger startManger].ad[@"homeInterstitial"];
     if(interstitial==nil|| interstitial==[NSNull null] ||interstitial[@"type"]==nil){
+        //[self.view makeToast:@"棣栭〉鎻掑睆骞垮憡琚睆钄�"];
         return;
     }
     
     
     
     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
-        
+        //[self.view makeToast:@"寮�濮嬪姞杞芥彃灞忓箍鍛�"];
         NSLog(@"骞垮憡寮�濮嬪姞杞�-棣栭〉鎻掑睆");
         self.fullscreenAd = [[BUNativeExpressFullscreenVideoAd alloc] initWithSlotID:@"947698171"];
         self.fullscreenAd.delegate = self;
@@ -280,12 +283,13 @@
 
 //姝ゆ柟娉曞湪瑙嗛骞垮憡绱犳潗鍔犺浇鎴愬姛鏃惰皟鐢ㄣ��
 - (void)nativeExpressFullscreenVideoAdDidLoad:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {
-    
+   // [self.view makeToast:@"鎻掑睆骞垮憡鍔犺浇鎴愬姛"];
 }
 
 //褰撹棰戝箍鍛婄礌鏉愬姞杞藉け璐ユ椂璋冪敤姝ゆ柟娉曘��
 - (void)nativeExpressFullscreenVideoAd:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error {
     NSLog(@"nativeExpressFullscreenVideoAd");
+    //[self.view makeToast:@"鎻掑睆骞垮憡鍔犺浇澶辫触"];
 }
 
 //姝ゆ柟娉曞湪鎴愬姛鍛堢幇nativeExpressAdView鏃惰皟鐢ㄣ��
@@ -296,6 +300,7 @@
 //褰搉ativeExpressAdView鏃犳硶鍛堢幇鏃讹紝灏嗚皟鐢ㄦ鏂规硶
 - (void)nativeExpressFullscreenVideoAdViewRenderFail:(BUNativeExpressFullscreenVideoAd *)rewardedVideoAd error:(NSError *_Nullable)error {
     NSLog(@"nativeExpressFullscreenVideoAdViewRenderFail");
+    //[self.view makeToast:@"鏃犳硶鍛堢幇鎻掑睆骞垮憡"];
 }
 //褰撹棰戠紦瀛樻垚鍔熸椂璋冪敤姝ゆ柟娉�
 - (void)nativeExpressFullscreenVideoAdDidDownLoadVideo:(BUNativeExpressFullscreenVideoAd *)fullscreenVideoAd {

--
Gitblit v1.8.0