Skip to content

Commit 4bdc1ea

Browse files
author
eagleychen
committed
add ops data
1 parent 38e057b commit 4bdc1ea

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ PODS:
3535
- TIoTLinkKit_SoundTouch (1.0.0)
3636
- TIoTLinkKit_TPNS (1.0.1)
3737
- TIoTLinkKit_WechatOpenSDK (1.0.1)
38-
- TIoTLinkKit_XP2P (2.4.52-beta.202410310732)
38+
- TIoTLinkKit_XP2P (2.4.52-beta.202411210852)
3939
- TIoTLinkVideo (1.0.0):
4040
- CocoaAsyncSocket (= 7.6.5)
4141
- TIoTLinkKit_FLV (= 2.2.3)
4242
- TIoTLinkKit_GVoiceSE (>= 1.0.9)
4343
- TIoTLinkKit_SoundTouch (= 1.0.0)
44-
- TIoTLinkKit_XP2P (= 2.4.52-beta.202410310732)
44+
- TIoTLinkKit_XP2P (= 2.4.52-beta.202411210852)
4545
- TPCircularBuffer (= 1.6.1)
4646
- TPCircularBuffer (1.6.1)
4747
- TrueTime (5.0.3)
@@ -133,8 +133,8 @@ SPEC CHECKSUMS:
133133
TIoTLinkKit_SoundTouch: cf79ae182b6c2349ff65bac7a338974bc538fa77
134134
TIoTLinkKit_TPNS: 7cea4fc1d20ef6c4c11c4f0b66bbb10ecf4ed968
135135
TIoTLinkKit_WechatOpenSDK: 7822d68cc5c46edf3f6020422202e7b65ea87614
136-
TIoTLinkKit_XP2P: 6aa0681277844c2abbb5e79c20f7015fd5d77548
137-
TIoTLinkVideo: a6707e1a88577f0f7804935cd1c66be22351b801
136+
TIoTLinkKit_XP2P: b9b93f181f69c34f5f8312e51d7399de064f6910
137+
TIoTLinkVideo: ca710b0373b3f40ae78b58818e54127e21155f93
138138
TPCircularBuffer: c13243556527551c4d320709c7b14a6d20cdc30a
139139
TrueTime: b49551ffafb28a9dee04e51b226f42a416010842
140140
TXLiteAVSDK_TRTC: e3383a81565e8bb2aaaaab4bd099ad5239cd5b2d

Source/SDK/LinkVideo/TIoTCoreXP2PBridge.mm

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,14 +769,30 @@ - (void)reportUserList:(data_report_t)report {
769769
[accessParam setValue:@([[TIoTCoreXP2PBridge getNowTimeTimestamp] integerValue]) forKey:@"Time"];
770770
[accessParam setValue:@"ios" forKey:@"System"];
771771
[accessParam setValue:@"app" forKey:@"Platform"];
772-
[accessParam setValue:appPeerName forKey:@"AppPeerName"];
773-
[accessParam setValue:deviceP2PInfo forKey:@"DeviceP2PInfo"];
774772
[accessParam setValue:[self getAppUUID] forKey:@"Uuid"];
775773
[accessParam setValue:[self getAppUUID] forKey:@"UserId"];
776774
[accessParam setValue:self.pro_id forKey:@"ProductId"];
777775
[accessParam setValue:self.dev_name forKey:@"DeviceName"];
778776
[accessParam setValue:@(report.live_size) forKey:@"ByteCount"];
779777
[accessParam setValue:@(0) forKey:@"Channel"];
778+
[accessParam setValue:appPeerName forKey:@"AppPeerNameFromApp"];
779+
[accessParam setValue:deviceP2PInfo forKey:@"DeviceP2PInfoFromApp"];
780+
[accessParam setValue:@(report.appUpByte) forKey:@"AppUpByte"];
781+
[accessParam setValue:@(report.appDownByte) forKey:@"AppDownByte"];
782+
[accessParam setValue:[TIoTCoreXP2PBridge getSDKVersion] forKey:@"AppVersion"];
783+
if ([status isEqualToString:@"fail"]) {
784+
[accessParam setValue:@"err" forKey:@"AppResult"];
785+
[accessParam setValue:@(report.errorcode) forKey:@"AppFailMsg"];
786+
787+
}else {
788+
[accessParam setValue:@"succ" forKey:@"AppResult"];
789+
}
790+
NSString *appConnectIp = @"";
791+
if (report.appConnectIp != NULL) {
792+
appConnectIp = [NSString stringWithCString:(const char *)report.appConnectIp encoding:NSASCIIStringEncoding];
793+
}
794+
[accessParam setValue:appConnectIp forKey:@"AppConnectIp"];
795+
780796
NSURL *url = [NSURL URLWithString:@"https://applog.iotcloud.tencentiotcloud.com/api/xp2p_ops/applog"];
781797
NSMutableURLRequest *reqlog = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:5];
782798
[reqlog setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
@@ -791,7 +807,7 @@ - (void)reportUserList:(data_report_t)report {
791807
}];
792808
[tasklog resume];
793809

794-
if ([status isEqualToString:@"end"]) {
810+
if ([status isEqualToString:@"end"] || [status isEqualToString:@"fail"]) {
795811
[self.uniReqStartTime removeObjectForKey:reqid];
796812
}
797813
}

TIoTLinkVideo.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
s.source_files = 'Source/SDK/LinkVideo/**/*.{h,m,c,mm}'
2020
s.resource = 'Source/SDK/LinkVideo/FLV/asset/GvoiceSE_v1_239-119-oneref-e.nn'
2121

22-
s.dependency 'TIoTLinkKit_XP2P', '2.4.52-beta.202410310732'
22+
s.dependency 'TIoTLinkKit_XP2P', '2.4.52-beta.202411210852'
2323
s.dependency 'TIoTLinkKit_FLV', '2.2.3'
2424
s.dependency 'CocoaAsyncSocket', '7.6.5'
2525
s.dependency 'TIoTLinkKit_SoundTouch', '1.0.0'

0 commit comments

Comments
 (0)