Commit de9ee24a authored by 朱璇's avatar 朱璇

面诊客户端链路日志

parent 34a79523
...@@ -189,7 +189,9 @@ ...@@ -189,7 +189,9 @@
return; return;
} }
// 埋点 // 埋点
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.LaunchButtion.Click" status:@"success" extraParam:@{@"counsellor_id": self.counsellorId, @"referer": SafeString(self.referer)}]; if (!self.isDispatch) {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.LaunchButtion.Click" status:@"success" extraParam:@{@"counsellor_id": self.counsellorId, @"referer": SafeString(self.referer)}];
}
[self payMoney]; [self payMoney];
} }
...@@ -330,7 +332,7 @@ ...@@ -330,7 +332,7 @@
}; };
[GMNetworking requestOCWithApi:API_LAUNCH_DISPATCH method:GMHTTPMethodPost parameters:param completion:^(GMResponseOC * _Nonnull response) { [GMNetworking requestOCWithApi:API_LAUNCH_DISPATCH method:GMHTTPMethodPost parameters:param completion:^(GMResponseOC * _Nonnull response) {
if (response.isSuccess) { if (response.isSuccess) {
[GMVideoPhobos consultation_traceWithActionStep:@"" status:@"" extraParam:@{}]; [GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.Launch" status:@"success" extraParam:@{@"order_no": SafeString(self.orderNo)}];
[GMVideoPhobos video_monitoringWithActionStep:@"进入正在匹配页" consultId:nil traceId:weakSelf.traceId]; [GMVideoPhobos video_monitoringWithActionStep:@"进入正在匹配页" consultId:nil traceId:weakSelf.traceId];
weakSelf.waitingView.currentTime = [response.data[@"countdown"] intValue]; weakSelf.waitingView.currentTime = [response.data[@"countdown"] intValue];
weakSelf.waitingView.orderNo = weakSelf.orderNo; weakSelf.waitingView.orderNo = weakSelf.orderNo;
...@@ -340,7 +342,7 @@ ...@@ -340,7 +342,7 @@
[weakSelf hide]; [weakSelf hide];
}); });
} else { } else {
[GMVideoPhobos consultation_traceWithActionStep:@"" status:@"" extraParam:@{}]; [GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.Launch" status:@"failed" extraParam:@{@"order_no": SafeString(self.orderNo)}];
[[GMBaseTool getCurrentViewController] toast:response.message]; [[GMBaseTool getCurrentViewController] toast:response.message];
} }
}]; }];
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#import "GMLibraryHeader.h" #import "GMLibraryHeader.h"
#import "RequestHeader.h" #import "RequestHeader.h"
#import <GMBase/GMBaseTool.h> #import <GMBase/GMBaseTool.h>
#import "GMVideoPhobos.h"
@interface GMToFaceDoctorListHorNewCell ()<GMDoctorInfoPopupViewDelegate> @interface GMToFaceDoctorListHorNewCell ()<GMDoctorInfoPopupViewDelegate>
/** 形象照 */ /** 形象照 */
@property (nonatomic, strong) UIImageView *personalIcon; @property (nonatomic, strong) UIImageView *personalIcon;
...@@ -211,6 +213,7 @@ ...@@ -211,6 +213,7 @@
#pragma mark - 医生头像 #pragma mark - 医生头像
- (void)docIconClickMethod { - (void)docIconClickMethod {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.ConsultantCard.Click" status:@"success" extraParam:@{@"counsellor_id": _doctorsModel.counsellorId, @"status": @(_doctorsModel.status)}];
[GMBaseTool getCurrentViewController].tabName = @"医生推荐"; [GMBaseTool getCurrentViewController].tabName = @"医生推荐";
self.personalIcon.userInteractionEnabled = NO; self.personalIcon.userInteractionEnabled = NO;
// 若该医生为在线可面诊状态,则拉起基本信息卡,若为面诊中/不在线状态,跳转医生详情页/或者弹出面诊师卡片 // 若该医生为在线可面诊状态,则拉起基本信息卡,若为面诊中/不在线状态,跳转医生详情页/或者弹出面诊师卡片
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
GMToFaceRecommendsDoctors *model = self.viewModel.dataArray[indexPath.row]; GMToFaceRecommendsDoctors *model = self.viewModel.dataArray[indexPath.row];
//埋点 //埋点
[self clickPhobosMethod:model indexPath:indexPath]; [self clickPhobosMethod:model indexPath:indexPath];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.ConsultantCard.Click" status:@"success" extraParam:@{@"counsellor_id": model.counsellorId, @"status": @(model.status)}];
if (model.status == 2) { if (model.status == 2) {
[self counsellorFillInfoView:model indexPath:indexPath]; [self counsellorFillInfoView:model indexPath:indexPath];
}else { }else {
...@@ -178,8 +179,6 @@ ...@@ -178,8 +179,6 @@
weakSelf.indexPath = nil; weakSelf.indexPath = nil;
if (response.isSuccess) { if (response.isSuccess) {
// 埋点 // 埋点
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.ConsultantCard.Click" status:@"success" extraParam:@{@"counsellor_id": model.counsellorId, @"status": @(model.status - 1)}];
GMConsultantInfoModel *model = [[GMConsultantInfoModel alloc] initWithDictionary:response.data error:NULL]; GMConsultantInfoModel *model = [[GMConsultantInfoModel alloc] initWithDictionary:response.data error:NULL];
GMDoctorInfoPopupView *popupView = [[GMDoctorInfoPopupView alloc] init]; GMDoctorInfoPopupView *popupView = [[GMDoctorInfoPopupView alloc] init];
popupView.tabName = self.viewModel.tabName; popupView.tabName = self.viewModel.tabName;
...@@ -191,7 +190,6 @@ ...@@ -191,7 +190,6 @@
popupView.model = model; popupView.model = model;
[[GMBaseTool getCurrentViewController].view addSubview:popupView]; [[GMBaseTool getCurrentViewController].view addSubview:popupView];
} else { } else {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.ConsultantCard.Click" status:@"failed" extraParam:@{@"counsellor_id": model.counsellorId, @"status": @(model.status - 1)}];
[[GMBaseTool getCurrentViewController] toast:response.message]; [[GMBaseTool getCurrentViewController] toast:response.message];
} }
weakSelf.collectView.userInteractionEnabled = YES; weakSelf.collectView.userInteractionEnabled = YES;
......
...@@ -151,7 +151,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil; ...@@ -151,7 +151,7 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
BOOL swapWH = UIInterfaceOrientationIsPortrait(UIApplication.sharedApplication.statusBarOrientation); BOOL swapWH = UIInterfaceOrientationIsPortrait(UIApplication.sharedApplication.statusBarOrientation);
[rtcEngine setVideoProfile:TTTRtc_VideoProfile_720P swapWidthAndHeight:swapWH]; [rtcEngine setVideoProfile:TTTRtc_VideoProfile_720P swapWidthAndHeight:swapWH];
[rtcEngine joinChannelByKey:nil channelName:_channelId uid:_uid joinSuccess:nil]; [rtcEngine joinChannelByKey:nil channelName:_channelId uid:_uid joinSuccess:nil];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Santi.Join" status:@"success" extraParam:@{@"order_no": @"", @"consultation_record_id": SafeString(model.consultationRecordId), @"channel_id": SafeString(_channelId)}]; [GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Santi.Join" status:@"success" extraParam:@{@"consultation_record_id": SafeString(model.consultationRecordId), @"channel_id": SafeString(_channelId)}];
} }
......
...@@ -395,7 +395,7 @@ ...@@ -395,7 +395,7 @@
[self.doctorVideoView configureRegion:doctorUser]; [self.doctorVideoView configureRegion:doctorUser];
[_TTManager setTelephoneVideoCompositingLayout:self.windowStatu userId:_TTManager.me.uid doctorId:uid]; [_TTManager setTelephoneVideoCompositingLayout:self.windowStatu userId:_TTManager.me.uid doctorId:uid];
} else if (clientRole == TTTRtc_ClientRole_Broadcaster) { } else if (clientRole == TTTRtc_ClientRole_Broadcaster) {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Santi.OnUserJoined" status:@"success" extraParam:@{@"user_id": @(uid), @"consultation_record_id": SafeString(_TTManager.consultationRecordId)}]; [GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.Santi.OnUserJoined" status:@"success" extraParam:@{@"user_id": @(uid), @"consultation_record_id": SafeString(_TTManager.consultationRecordId)}];
[self.doctorVideoView configureRegion:doctorUser]; [self.doctorVideoView configureRegion:doctorUser];
if (_TTManager.me.clientRole == TTTRtc_ClientRole_Anchor) { if (_TTManager.me.clientRole == TTTRtc_ClientRole_Anchor) {
......
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