Commit 8b9529d2 authored by Mazy's avatar Mazy

optimize h5

parents c74de4bc 60fcc8e8
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
// 顶部安全距离 // 顶部安全距离
#define SafeAreaTopHeight (IPHONE_X ? 88 : 64) #define SafeAreaTopHeight (IPHONE_X ? 88 : 64)
// 状态栏高度
#define statusBarFrameHeight (IPHONE_X ? 44 : 20)
// 底部安全距离 // 底部安全距离
#define SafeAreaBottomHeight (IPHONE_X ? 34 : 0) #define SafeAreaBottomHeight (IPHONE_X ? 34 : 0)
// 状态栏高度 // 状态栏高度
...@@ -81,7 +83,7 @@ ...@@ -81,7 +83,7 @@
#import "MBProgressHUD+MJ.h" #import "MBProgressHUD+MJ.h"
#import "Masonry.h" #import "Masonry.h"
#import "GYBaseModel.h" #import "GYBaseModel.h"
#import <MJExtension/MJExtension.h>
#import <UMCommon/MobClick.h> #import <UMCommon/MobClick.h>
#import "IOSADManager.h" //AD #import "IOSADManager.h" //AD
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
@interface AddCSJADManager () @interface AddCSJADManager ()
@property (nonatomic ,retain) GYAdsTrackModel * csjLoadData; @property (nonatomic ,retain) GYAdsTrackModel * currentData;
@property (nonatomic, copy) NSString * clk_tracking; //防止多次上报点击 @property (nonatomic, copy) NSString * clk_tracking; //防止多次上报点击
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- (void)loadAdWithData:(GYAdsTrackModel *)loadADModel withADType:(eADType)AdType{ - (void)loadAdWithData:(GYAdsTrackModel *)loadADModel withADType:(eADType)AdType{
self.csjLoadData = loadADModel; self.currentData = loadADModel;
WEAKSELF; WEAKSELF;
GYAdsTrackModel * model = loadADModel; GYAdsTrackModel * model = loadADModel;
if (AdType == ADType_OpenScreen) { // 开屏 if (AdType == ADType_OpenScreen) { // 开屏
...@@ -92,7 +92,9 @@ ...@@ -92,7 +92,9 @@
This method is called when splash ad material loaded successfully. This method is called when splash ad material loaded successfully.
*/ */
- (void)splashAdDidLoad:(BUSplashAdView *)splashAd;{ - (void)splashAdDidLoad:(BUSplashAdView *)splashAd;{
self.loadSuccessCallbackBlock(self.csjLoadData, YES); self.loadSuccessCallbackBlock(self.currentData, YES);
WEAKSELF; WEAKSELF;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
UIWindow *keyWindow = [UIApplication sharedApplication].windows.lastObject; UIWindow *keyWindow = [UIApplication sharedApplication].windows.lastObject;
...@@ -107,7 +109,7 @@ ...@@ -107,7 +109,7 @@
@param error : the reason of error @param error : the reason of error
*/ */
- (void)splashAd:(BUSplashAdView *)splashAd didFailWithError:(NSError * _Nullable)error;{ - (void)splashAd:(BUSplashAdView *)splashAd didFailWithError:(NSError * _Nullable)error;{
self.loadSuccessCallbackBlock(self.csjLoadData, NO); self.loadSuccessCallbackBlock(self.currentData, NO);
} }
...@@ -116,10 +118,10 @@ ...@@ -116,10 +118,10 @@
*/ */
- (void)splashAdWillVisible:(BUSplashAdView *)splashAd;{ - (void)splashAdWillVisible:(BUSplashAdView *)splashAd;{
self.showSuccessCallbackBlock(self.csjLoadData, YES); self.showSuccessCallbackBlock(self.currentData, YES);
// [[CGUserManager shared] addLocCollection:@"splash_display" value:@"splash_display_success"]; // [[CGUserManager shared] addLocCollection:@"splash_display" value:@"splash_display_success"];
// NSString * clkTracking = self.csjLoadData.imp_tracking[0]; // NSString * clkTracking = self.currentData.imp_tracking[0];
// if (clkTracking.length > 0) { // if (clkTracking.length > 0) {
// [[CGNetworkTools shared] pureGetWithAdsTrackingAction:clkTracking success:^(id _Nonnull response) { // [[CGNetworkTools shared] pureGetWithAdsTrackingAction:clkTracking success:^(id _Nonnull response) {
// //
...@@ -134,7 +136,9 @@ ...@@ -134,7 +136,9 @@
*/ */
- (void)splashAdDidClick:(BUSplashAdView *)splashAd;{ - (void)splashAdDidClick:(BUSplashAdView *)splashAd;{
// NSString * clkTracking = self.csjLoadData.clk_tracking[0]; [self trackingADWith:self.currentData.clk_tracking.firstObject];
// NSString * clkTracking = self.currentData.clk_tracking[0];
// if ([self.clk_tracking isEqualToString:clkTracking]) { // if ([self.clk_tracking isEqualToString:clkTracking]) {
// return; // return;
...@@ -194,7 +198,7 @@ ...@@ -194,7 +198,7 @@
*/ */
- (void)nativeExpressRewardedVideoAdDidLoad:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{ - (void)nativeExpressRewardedVideoAdDidLoad:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{
self.loadSuccessCallbackBlock(self.csjLoadData,YES); self.loadSuccessCallbackBlock(self.currentData,YES);
} }
...@@ -203,7 +207,7 @@ ...@@ -203,7 +207,7 @@
@param error : the reason of error @param error : the reason of error
*/ */
- (void)nativeExpressRewardedVideoAd:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd didFailWithError:(NSError *_Nullable)error;{ - (void)nativeExpressRewardedVideoAd:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd didFailWithError:(NSError *_Nullable)error;{
self.loadSuccessCallbackBlock(self.csjLoadData,NO); self.loadSuccessCallbackBlock(self.currentData,NO);
self.splashAd_CSJ.hidden = YES; self.splashAd_CSJ.hidden = YES;
[self.splashAd_CSJ removeFromSuperview]; [self.splashAd_CSJ removeFromSuperview];
...@@ -265,14 +269,14 @@ ...@@ -265,14 +269,14 @@
This method is called when video ad is closed. This method is called when video ad is closed.
*/ */
- (void)nativeExpressRewardedVideoAdDidClose:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{ - (void)nativeExpressRewardedVideoAdDidClose:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{
self.showSuccessCallbackBlock(self.csjLoadData, YES); self.showSuccessCallbackBlock(self.currentData, YES);
} }
/** /**
This method is called when video ad is clicked. This method is called when video ad is clicked. 点击
*/ */
- (void)nativeExpressRewardedVideoAdDidClick:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{ - (void)nativeExpressRewardedVideoAdDidClick:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
} }
/** /**
...@@ -296,7 +300,7 @@ ...@@ -296,7 +300,7 @@
@param verify :return YES when return value is 2000. @param verify :return YES when return value is 2000.
*/ */
- (void)nativeExpressRewardedVideoAdServerRewardDidSucceed:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd verify:(BOOL)verify;{ - (void)nativeExpressRewardedVideoAdServerRewardDidSucceed:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd verify:(BOOL)verify;{
// self.showSuccessCallbackBlock(self.csjLoadData, YES); // self.showSuccessCallbackBlock(self.currentData, YES);
} }
...@@ -307,7 +311,7 @@ ...@@ -307,7 +311,7 @@
@param error request error info @param error request error info
*/ */
- (void)nativeExpressRewardedVideoAdServerRewardDidFail:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd error:(NSError *_Nullable)error;{ - (void)nativeExpressRewardedVideoAdServerRewardDidFail:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd error:(NSError *_Nullable)error;{
self.showSuccessCallbackBlock(self.csjLoadData, NO); self.showSuccessCallbackBlock(self.currentData, NO);
} }
...@@ -324,7 +328,7 @@ ...@@ -324,7 +328,7 @@
* Sent when views successfully load ad * Sent when views successfully load ad
*/ */
- (void)nativeExpressAdSuccessToLoad:(BUNativeExpressAdManager *)nativeExpressAd views:(NSArray<__kindof BUNativeExpressAdView *> *)views;{ - (void)nativeExpressAdSuccessToLoad:(BUNativeExpressAdManager *)nativeExpressAd views:(NSArray<__kindof BUNativeExpressAdView *> *)views;{
self.loadSuccessCallbackBlock(self.csjLoadData,YES); self.loadSuccessCallbackBlock(self.currentData,YES);
if ([nativeExpressAd isMemberOfClass:[BUNativeExpressAdManager class]]) { if ([nativeExpressAd isMemberOfClass:[BUNativeExpressAdManager class]]) {
if (views.count) { if (views.count) {
...@@ -341,7 +345,7 @@ ...@@ -341,7 +345,7 @@
* Sent when views fail to load ad * Sent when views fail to load ad
*/ */
- (void)nativeExpressAdFailToLoad:(BUNativeExpressAdManager *)nativeExpressAd error:(NSError *_Nullable)error;{ - (void)nativeExpressAdFailToLoad:(BUNativeExpressAdManager *)nativeExpressAd error:(NSError *_Nullable)error;{
self.loadSuccessCallbackBlock(self.csjLoadData,NO); self.loadSuccessCallbackBlock(self.currentData,NO);
} }
...@@ -349,14 +353,14 @@ ...@@ -349,14 +353,14 @@
* This method is called when rendering a nativeExpressAdView successed, and nativeExpressAdView.size.height has been updated * This method is called when rendering a nativeExpressAdView successed, and nativeExpressAdView.size.height has been updated
*/ */
- (void)nativeExpressAdViewRenderSuccess:(BUNativeExpressAdView *)nativeExpressAdView;{ - (void)nativeExpressAdViewRenderSuccess:(BUNativeExpressAdView *)nativeExpressAdView;{
self.showSuccessCallbackBlock(self.csjLoadData, YES); self.showSuccessCallbackBlock(self.currentData, YES);
} }
/** /**
* This method is called when a nativeExpressAdView failed to render * This method is called when a nativeExpressAdView failed to render
*/ */
- (void)nativeExpressAdViewRenderFail:(BUNativeExpressAdView *)nativeExpressAdView error:(NSError *_Nullable)error;{ - (void)nativeExpressAdViewRenderFail:(BUNativeExpressAdView *)nativeExpressAdView error:(NSError *_Nullable)error;{
self.showSuccessCallbackBlock(self.csjLoadData, NO); self.showSuccessCallbackBlock(self.currentData, NO);
} }
/** /**
...@@ -370,7 +374,8 @@ ...@@ -370,7 +374,8 @@
* Sent when an ad view is clicked * Sent when an ad view is clicked
*/ */
- (void)nativeExpressAdViewDidClick:(BUNativeExpressAdView *)nativeExpressAdView;{ - (void)nativeExpressAdViewDidClick:(BUNativeExpressAdView *)nativeExpressAdView;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
} }
/** /**
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
* 开屏广告成功展示 * 开屏广告成功展示
*/ */
- (void)splashAdSuccessPresentScreen:(GDTSplashAd *)splashAd;{ - (void)splashAdSuccessPresentScreen:(GDTSplashAd *)splashAd;{
} }
...@@ -127,7 +128,10 @@ ...@@ -127,7 +128,10 @@
/** /**
* 开屏广告点击回调 * 开屏广告点击回调
*/ */
- (void)splashAdClicked:(GDTSplashAd *)splashAd;{} - (void)splashAdClicked:(GDTSplashAd *)splashAd;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
}
/** /**
* 开屏广告将要关闭回调 * 开屏广告将要关闭回调
...@@ -230,7 +234,8 @@ ...@@ -230,7 +234,8 @@
@param rewardedVideoAd GDTRewardVideoAd 实例 @param rewardedVideoAd GDTRewardVideoAd 实例
*/ */
- (void)gdt_rewardVideoAdDidClicked:(GDTRewardVideoAd *)rewardedVideoAd;{ - (void)gdt_rewardVideoAdDidClicked:(GDTRewardVideoAd *)rewardedVideoAd;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
} }
/** /**
...@@ -335,7 +340,10 @@ ...@@ -335,7 +340,10 @@
/** /**
* 原生模板广告点击回调 * 原生模板广告点击回调
*/ */
- (void)nativeExpressAdViewClicked:(GDTNativeExpressAdView *)nativeExpressAdView;{} - (void)nativeExpressAdViewClicked:(GDTNativeExpressAdView *)nativeExpressAdView;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
}
/** /**
* 原生模板广告被关闭 * 原生模板广告被关闭
......
...@@ -107,7 +107,8 @@ ...@@ -107,7 +107,8 @@
开屏广告点击回调 开屏广告点击回调
*/ */
- (void)vl_splashAdDidClick:(VLNSplashAd *)splashAd{ - (void)vl_splashAdDidClick:(VLNSplashAd *)splashAd{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
} }
/** /**
...@@ -159,7 +160,10 @@ ...@@ -159,7 +160,10 @@
/** /**
视频广告信息点击回调 视频广告信息点击回调
*/ */
- (void)vl_rewardVideoAdDidClicked:(VLNRewardedVideoAd *)rewardedVideoAd{} - (void)vl_rewardVideoAdDidClicked:(VLNRewardedVideoAd *)rewardedVideoAd{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
}
/** /**
视频广告加载错误信息回调 视频广告加载错误信息回调
...@@ -223,7 +227,9 @@ ...@@ -223,7 +227,9 @@
/** /**
广告点击回调 广告点击回调
*/ */
- (void)vl_nativeAdDidClick:(VLNNativeAd *)nativeAd;{} - (void)vl_nativeAdDidClick:(VLNNativeAd *)nativeAd;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
}
/** /**
广告点击关闭 广告点击关闭
......
...@@ -96,7 +96,8 @@ ...@@ -96,7 +96,8 @@
* 开屏广告点击回调 * 开屏广告点击回调
*/ */
- (void)onSplashAdClicked:(WindSplashAd *)splashAd;{ - (void)onSplashAdClicked:(WindSplashAd *)splashAd;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
} }
/** /**
...@@ -166,6 +167,46 @@ ...@@ -166,6 +167,46 @@
} }
/**
激励视频广告开始播放
@param placementId 广告位Id
*/
- (void)onVideoAdPlayStart:(NSString *)placementId;{
}
/**
激励视频广告发生点击
@param placementId 广告位Id
*/
- (void)onVideoAdClicked:(NSString *)placementId;{
[self trackingADWith:self.currentData.clk_tracking.firstObject];
}
/**
激励视频广告AdServer返回广告(表示渠道有广告填充)
@param placementId 广告位Id
*/
- (void)onVideoAdServerDidSuccess:(NSString *)placementId;{
}
/**
激励视频广告AdServer无广告返回(表示渠道无广告填充)
@param placementId 广告位Id
*/
- (void)onVideoAdServerDidFail:(NSString *)placementId;{
}
//MARK: ---- 大图 ---- 原生 //MARK: ---- 大图 ---- 原生
......
...@@ -20,21 +20,29 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -20,21 +20,29 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic ,strong) NSString *adPlatform; // guangdiantong 平台 @property (nonatomic ,strong) NSString *adPlatform; // guangdiantong 平台
@property (nonatomic ,assign) NSInteger adType; // 忽略 // @property (nonatomic ,assign) NSInteger adType; // 忽略 //
@property (nonatomic ,strong) NSArray *clk_tracking; // 点击广告 调用
@property (nonatomic ,strong) NSString *codeId; // codeId = 945568416; //广告位ID 请求广告 @property (nonatomic ,strong) NSString *codeId; // codeId = 945568416; //广告位ID 请求广告
@property (nonatomic ,strong) NSArray *imp_tracking; // 展示 调用
@property (nonatomic ,assign) NSInteger platformId; // 平台 ID @property (nonatomic ,assign) NSInteger platformId; // 平台 ID
@property (nonatomic ,strong) NSString * showfail_tracking; //showfail_tracking 显示 失败
@property (nonatomic ,strong) NSString * pullfail_tracking; //showfail_tracking 拉 失败
@property (nonatomic ,strong) NSString * pullsucc_tracking; //showfail_tracking 拉 成功
@property (nonatomic ,assign) NSInteger codeAppId; //广告商APP ID @property (nonatomic ,assign) NSInteger codeAppId; //广告商APP ID
@property (nonatomic ,assign) NSInteger slot_id; // @property (nonatomic ,assign) NSInteger slot_id; //
@property (nonatomic ,strong) NSString * slotName; // @property (nonatomic ,strong) NSString * slotName; //
// 广告事件回调
@property (nonatomic ,strong) NSArray * imp_tracking; // 展示 调用
@property (nonatomic ,strong) NSArray * showfail_tracking; //showfail_tracking 显示 失败
@property (nonatomic ,strong) NSArray * pullfail_tracking; //showfail_tracking 拉 失败
@property (nonatomic ,strong) NSArray * pullsucc_tracking; //showfail_tracking 拉 成功
@property (nonatomic ,strong) NSArray * clk_tracking; // 点击广告 调用
@property (nonatomic ,strong) NSArray * playcomplete_trackings; //播放成功
@property (nonatomic ,strong) NSMutableArray <GYAdsTrackModel *> * backups; // 用于缓存.成功几率比较高
@property (nonatomic ,assign) BOOL loadSuccess; //加载成功 //逻辑字段
@property (nonatomic ,assign) eADType loadADType; //这个广告所属的广告类型 @property (nonatomic ,assign) BOOL firstFailure; // 第一个失败
@property (nonatomic ,assign) eADType loadADType; //这个广告所属的广告类型
+(instancetype)modelWithDic:(NSDictionary *)dict; +(instancetype)modelWithDic:(NSDictionary *)dict;
......
...@@ -80,6 +80,16 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -80,6 +80,16 @@ NS_ASSUME_NONNULL_BEGIN
- (void)showADType:(eADType )AdType resultBlock:(void(^)(BOOL success)) adShowBlock; - (void)showADType:(eADType )AdType resultBlock:(void(^)(BOOL success)) adShowBlock;
//MARK: 广告链接上报
/// 广告事件上报
/// @param url 要上报的地址
- (void)trackingADWith:(NSString *)url;
//------------------------------------- 以下下方法是不要主动调用可以 -----------------------------
/// 加载一条缓存 /// 加载一条缓存
/// @param loadADModel 广告对象 /// @param loadADModel 广告对象
/// @param AdType 广告类型 /// @param AdType 广告类型
...@@ -91,7 +101,6 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -91,7 +101,6 @@ NS_ASSUME_NONNULL_BEGIN
/// @param adType 广告类型 /// @param adType 广告类型
- (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType; - (void)showAdWithData:(GYAdsTrackModel *)showData withADType:(eADType)adType;
/// 请求开平数据 /// 请求开平数据
- (void)requestOpenScreenAD; - (void)requestOpenScreenAD;
......
This diff is collapsed.
...@@ -87,13 +87,18 @@ ...@@ -87,13 +87,18 @@
make.edges.equalTo(self.view); make.edges.equalTo(self.view);
}]; }];
self.progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 2)]; self.progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, statusBarFrameHeight, KScreenWidth, 2)];
_progressView.backgroundColor = [UIColor groupTableViewBackgroundColor]; _progressView.backgroundColor = [UIColor groupTableViewBackgroundColor];
_progressView.progressTintColor = kColorWithRGB(112, 156, 246); _progressView.progressTintColor = UIColor.whiteColor; //kColorWithRGB(112, 156, 246);
_progressView.transform = CGAffineTransformMakeScale(1.0f, 1.5f); _progressView.transform = CGAffineTransformMakeScale(1.0f, 1.5f);
[self.view addSubview:_progressView]; [self.view addSubview:_progressView];
[self.view bringSubviewToFront:self.progressView]; [self.view bringSubviewToFront:self.progressView];
// [self.progressView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.left.right.equalTo(self);
// make.height.equalTo(@(1));
// make.top.equalTo(@(kStatusBarHeight));
// }];
[_webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionNew context:nil]; [_webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionNew context:nil];
_requestW = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:_url]]; _requestW = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:_url]];
...@@ -348,7 +353,7 @@ ...@@ -348,7 +353,7 @@
"document.getElementsByTagName('head')[0].appendChild(script);"; "document.getElementsByTagName('head')[0].appendChild(script);";
[webView evaluateJavaScript:injectionJSString completionHandler:nil]; [webView evaluateJavaScript:injectionJSString completionHandler:nil];
NSString* method = [NSString stringWithFormat:@"getStatusBarHeight(\"%.0f\")", UIApplication.sharedApplication.statusBarFrame.size.height / 2 + 22]; NSString* method = [NSString stringWithFormat:@"getStatusBarHeight(\"%.0d\")", SafeAreaTopHeight / 2];
[webView evaluateJavaScript:method completionHandler:^(id _Nullable obj, NSError * _Nullable error) { [webView evaluateJavaScript:method completionHandler:^(id _Nullable obj, NSError * _Nullable error) {
if (error) { if (error) {
NSLog(@"%@", error); NSLog(@"%@", error);
...@@ -443,20 +448,20 @@ ...@@ -443,20 +448,20 @@
[_webView.configuration.userContentController removeScriptMessageHandlerForName:@"settingCallBack"]; [_webView.configuration.userContentController removeScriptMessageHandlerForName:@"settingCallBack"];
} }
// JS
- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message { - (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message {
NSLog(@"%@",message.name);// 方法名 NSLog(@"%@",message.name);// 方法名
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
if([message.name isEqualToString:@"backTrack"] || [message.name isEqualToString:@"closeView"]){ if([message.name isEqualToString:@"backTrack"] || [message.name isEqualToString:@"closeView"]){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf goBackController]; [weakSelf goBackController];
}); });
}else if ([message.name isEqualToString:@"settingCallBack"]){ }else if ([message.name isEqualToString:@"settingCallBack"]){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf goSetting]; [weakSelf goSetting];
}); });
}else if([message.name isEqualToString:@"withDraw"]){ }else if([message.name isEqualToString:@"withDraw"]){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.25 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf WXLogin]; [weakSelf WXLogin];
}); });
}else if([message.name isEqualToString:@"apiClientGet"]){ }else if([message.name isEqualToString:@"apiClientGet"]){
......
...@@ -14,17 +14,17 @@ ...@@ -14,17 +14,17 @@
<key>BaiduMobAd_SDK.xcscheme_^#shared#^_</key> <key>BaiduMobAd_SDK.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>10</integer> <integer>11</integer>
</dict> </dict>
<key>Bytedance-UnionAD.xcscheme_^#shared#^_</key> <key>Bytedance-UnionAD.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>9</integer> <integer>10</integer>
</dict> </dict>
<key>GDTMobSDK.xcscheme_^#shared#^_</key> <key>GDTMobSDK.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>12</integer> <integer>13</integer>
</dict> </dict>
<key>KSAdSDK.xcscheme_^#shared#^_</key> <key>KSAdSDK.xcscheme_^#shared#^_</key>
<dict> <dict>
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
<key>MJExtension.xcscheme_^#shared#^_</key> <key>MJExtension.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>11</integer> <integer>15</integer>
</dict> </dict>
<key>MJRefresh.xcscheme_^#shared#^_</key> <key>MJRefresh.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>14</integer> <integer>12</integer>
</dict> </dict>
<key>Masonry.xcscheme</key> <key>Masonry.xcscheme</key>
<dict> <dict>
...@@ -65,12 +65,12 @@ ...@@ -65,12 +65,12 @@
<key>RSPodKSAdaper.xcscheme_^#shared#^_</key> <key>RSPodKSAdaper.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>7</integer> <integer>6</integer>
</dict> </dict>
<key>SigmobAd-iOS.xcscheme_^#shared#^_</key> <key>SigmobAd-iOS.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>13</integer> <integer>8</integer>
</dict> </dict>
<key>SwiftyStoreKit.xcscheme</key> <key>SwiftyStoreKit.xcscheme</key>
<dict> <dict>
...@@ -82,17 +82,17 @@ ...@@ -82,17 +82,17 @@
<key>UMCCommon.xcscheme_^#shared#^_</key> <key>UMCCommon.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>15</integer> <integer>9</integer>
</dict> </dict>
<key>VLionAdSDKPoly.xcscheme_^#shared#^_</key> <key>VLionAdSDKPoly.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>8</integer> <integer>14</integer>
</dict> </dict>
<key>WechatOpenSDK.xcscheme_^#shared#^_</key> <key>WechatOpenSDK.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>16</integer> <integer>7</integer>
</dict> </dict>
</dict> </dict>
<key>SuppressBuildableAutocreation</key> <key>SuppressBuildableAutocreation</key>
......
This diff is collapsed.
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<key>Unity-iPhone.xcscheme_^#shared#^_</key> <key>Unity-iPhone.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>6</integer> <integer>16</integer>
</dict> </dict>
<key>UnityFramework.xcscheme_^#shared#^_</key> <key>UnityFramework.xcscheme_^#shared#^_</key>
<dict> <dict>
......
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