Commit eabe4543 authored by aijiaoping's avatar aijiaoping

1.2.9

parent c4809006
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "GMPhobos" s.name = "GMPhobos"
s.version = "1.2.8" s.version = "1.2.9"
s.summary = "GM statistic data sdk" s.summary = "GM statistic data sdk"
s.description = <<-DESC s.description = <<-DESC
...@@ -24,8 +24,8 @@ Pod::Spec.new do |s| ...@@ -24,8 +24,8 @@ Pod::Spec.new do |s|
s.platform = :ios, '8.0' s.platform = :ios, '8.0'
s.source_files = 'GMPhobos/Classes/*.{h,m}' s.source_files = 'GMPhobos/Classes/*.{h,m}'
s.dependency 'GMCache', '0.2.3' s.dependency 'GMCache'
s.dependency 'GMKit', '1.1.3' s.dependency 'GMKit'
s.library = 'z' s.library = 'z'
end end
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#import "PhobosPVProtocol.h" #import "PhobosPVProtocol.h"
#import <CoreLocation/CLLocation.h> #import <CoreLocation/CLLocation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM (NSInteger, PhobosSigningType) { typedef NS_ENUM (NSInteger, PhobosSigningType) {
PhobosSigningTypeUndefined = 0, PhobosSigningTypeUndefined = 0,
PhobosSigningTypeAppStore, PhobosSigningTypeAppStore,
...@@ -182,3 +184,4 @@ typedef NS_ENUM (NSInteger, PhobosSigningType) { ...@@ -182,3 +184,4 @@ typedef NS_ENUM (NSInteger, PhobosSigningType) {
- (void)simulativePV:(NSString *)pageName businessId:(NSString *)bid referer:(NSString *)referer; - (void)simulativePV:(NSString *)pageName businessId:(NSString *)bid referer:(NSString *)referer;
@end @end
NS_ASSUME_NONNULL_END
...@@ -490,12 +490,13 @@ static NSString *sdkVersion = @"110"; ...@@ -490,12 +490,13 @@ static NSString *sdkVersion = @"110";
phobosLog(@"两个埋点inTime 时间差------%f", (fabsl(objInTime - pageInTime))); phobosLog(@"两个埋点inTime 时间差------%f", (fabsl(objInTime - pageInTime)));
phobosLog(@"两个埋点outTime 时间差------%f", (fabsl(objOutTime - pageOutTime))); phobosLog(@"两个埋点outTime 时间差------%f", (fabsl(objOutTime - pageOutTime)));
checkTimeError = YES; checkTimeError = YES;
phobosLog(@"%s____数据校验失败", __func__); phobosLog(@"%s____数据校验失败,PV埋点可能重复", __func__);
/*
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
NSString *stringTitle = [NSString stringWithFormat:@"%@ PV埋点可能重复", data]; NSString *stringTitle = [NSString stringWithFormat:@"%@ PV埋点可能重复", data];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:stringTitle message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:stringTitle message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
[alertView show]; [alertView show];
}); });*/
break; break;
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// //
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol PhobosPVProtocol <NSObject> @protocol PhobosPVProtocol <NSObject>
/** /**
...@@ -76,3 +76,4 @@ ...@@ -76,3 +76,4 @@
@property (nonatomic, copy) NSString *isPush; @property (nonatomic, copy) NSString *isPush;
@end @end
NS_ASSUME_NONNULL_END
...@@ -38,8 +38,17 @@ typedef void (^SendDataSuccessBlock)(NSInteger code); ...@@ -38,8 +38,17 @@ typedef void (^SendDataSuccessBlock)(NSInteger code);
* @7735 精准曝光 * @7735 精准曝光
*/ */
+ (void)sendData:(NSData *)data currentAPI:(NSString *)currentAPI success:(SendDataSuccessBlock)success; + (void)sendData:(NSData *)data currentAPI:(NSString *)currentAPI success:(SendDataSuccessBlock)success;
/**
* @brief 获取当前时间的秒数
* @since 0.0.1
*/
+ (NSString *)currentTime; + (NSString *)currentTime;
/**
获取当前时间的毫秒数
@return v7.14.0
*/
+ (NSString *)currentMMTime;
+ (NSString *)getAppVersion; + (NSString *)getAppVersion;
+ (BOOL)isNonEmpty:(NSString *)string; + (BOOL)isNonEmpty:(NSString *)string;
+ (NSData *)encodeJSON:(id)obj; + (NSData *)encodeJSON:(id)obj;
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
/** /**
* @brief 获取当前时间的秒数 * @brief 获取当前时间的秒数
* @since 0.0.1 * @since 0.0.1
*/ */
+ (NSString *)currentTime { + (NSString *)currentTime {
...@@ -182,6 +182,18 @@ ...@@ -182,6 +182,18 @@
return timeIntervalStr; return timeIntervalStr;
} }
/**
获取当前时间的毫秒数
@return v7.14.0
*/
+ (NSString *)currentMMTime {
NSDate *date = [NSDate date];
NSTimeInterval interval = [date timeIntervalSince1970];
NSString *timeIntervalStr = [NSString stringWithFormat:@"%ld",(long)interval*1000];
return timeIntervalStr;
}
/** /**
* @brief 获取当前APP的版本号 * @brief 获取当前APP的版本号
* *
......
...@@ -24,4 +24,6 @@ ...@@ -24,4 +24,6 @@
此方法在onPvStart时调用,给referrerTabName赋值 此方法在onPvStart时调用,给referrerTabName赋值
*/ */
- (void)initReferrerTabName; - (void)initReferrerTabName;
@end @end
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