Commit cc58ea4f authored by 朱璇's avatar 朱璇

Merge branch 'zx/faceTest' into 'master'

Zx/face test

See merge request !4
parents 1c632d62 6625c532
......@@ -190,7 +190,7 @@
}
// 埋点
if (!self.isDispatch) {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.LaunchButtion.Click" status:@"success" extraParam:@{@"counsellor_id": self.counsellorId, @"referer": SafeString(self.referer)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.LaunchButtion.Click" status:@"success" extraParam:@{@"counsellor_id": SafeString(self.counsellorId), @"referer": SafeString(self.referer)}];
}
[self payMoney];
}
......@@ -257,7 +257,7 @@
- (void)consultation_traceWithStatus:(NSString *)status {
// 埋点
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.CreateOrder" status:status extraParam:@{@"counsellor_id": SafeString(self.counsellorId), @"order_no": SafeString(self.orderNo), @"referer": SafeString(self.referer)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.CreateOrder" status:status extraParam:@{ @"order_no": SafeString(self.orderNo)}];
}
#pragma mark - 需要付款,先付款、后面诊
......
......@@ -200,9 +200,9 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
[GMVideoTelephoneRequestTool telephoneMessageEventType:GMEventType_juJue consultationRecordId:model.consultationRecordId finishBlock:^(BOOL success, NSDictionary *message) {
if (success) {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.Reject.Click" status:@"success" extraParam:@{@"consultation_record_id": SafeString(model.consultationRecordId)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.Reject" status:@"success" extraParam:@{@"consultation_record_id": SafeString(model.consultationRecordId)}];
} else {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.Reject.Click" status:@"failed" extraParam:@{@"consultation_record_id": SafeString(model.consultationRecordId)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.One2One.Reject" status:@"failed" extraParam:@{@"consultation_record_id": SafeString(model.consultationRecordId)}];
}
}];
......@@ -249,12 +249,12 @@ static GMDoctorVideoTelephoneLogin *loginManager = nil;
if (_neteaseModel && [_neteaseModel.toAccountId isNonEmpty] && [_neteaseModel.channelId isNonEmpty]) {
[[GMNimChannelManager shareInstance] doJoinAndInviteJoinChannelWithChannelId:_neteaseModel.channelId accountId:_neteaseModel.toAccountId customInfo:_neteaseModel.inviteExt resultBlock:^(BOOL isSuccess) {
if (!isSuccess) {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.NeteaseIM.ReadySend" status:@"failed" extraParam:@{@"consultation_record_id": SafeString(TTManager.consultationRecordId), @"channel_id": SafeString(_channelId), @"user_id": SafeString(_neteaseModel.toAccountId)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.NeteaseIM.ReadySend" status:@"failed" extraParam:@{@"consultation_record_id": SafeString(TTManager.consultationRecordId), @"channel_id": SafeString(_neteaseModel.channelId), @"user_id": SafeString(_neteaseModel.toAccountId)}];
#ifdef DEBUG
[[GMBaseTool getCurrentViewController] toast:@"doJoinAndInviteJoinChannelWithChannelId失败"];
#endif
} else {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.NeteaseIM.ReadySend" status:@"success" extraParam:@{@"consultation_record_id": SafeString(TTManager.consultationRecordId), @"channel_id": SafeString(_channelId), @"user_id": SafeString(_neteaseModel.toAccountId)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.NeteaseIM.ReadySend" status:@"success" extraParam:@{@"consultation_record_id": SafeString(TTManager.consultationRecordId), @"channel_id": SafeString(_neteaseModel.channelId), @"user_id": SafeString(_neteaseModel.toAccountId)}];
}
}];
}
......
......@@ -162,7 +162,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
BOOL swapWH = UIInterfaceOrientationIsPortrait(UIApplication.sharedApplication.statusBarOrientation);
[rtcEngine setVideoProfile:TTTRtc_VideoProfile_720P swapWidthAndHeight:swapWH];
[rtcEngine joinChannelByKey:nil channelName:_channelId uid:_uid joinSuccess:nil];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Santi.Join" status:@"success" extraParam:@{@"order_no": SafeString(_messageDict[@"order_no"]), @"consultation_record_id": SafeString(_messageDict[@"consultation_record_id"]), @"channel_id": SafeString(_channelId)}];
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Santi.Join" status:@"success" extraParam:@{@"order_no": SafeString(_messageDict[@"order_no"]), @"consultation_record_id": SafeString(model.consultationRecordId), @"channel_id": SafeString(_channelId)}];
}
......
......@@ -94,13 +94,11 @@
__weak typeof(self)weakSelf = self;
[self.viewModel fetchWaitingListData:^(APIStatusCode apiStatus, NSString *message) {
if (APIStatusCodeFailed == apiStatus) { // 失败
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.PollDispatch" status:@"failed" extraParam:@{@"consultation_record_id": @""}];
[weakSelf showEmptyView:GMEmptyViewTypeException];
if ([message isNonEmpty]) {
[weakSelf toast:message];
}
} else {
[GMVideoPhobos consultation_traceWithActionStep:@"Consultation.Dispatch.PollDispatch" status:@"success" extraParam:@{@"consultation_record_id": @""}];
if (apiStatus == APIStatusCodeEmpty) { // 空
[weakSelf showEmptyView:GMEmptyViewTypeEmpty];
} else {
......
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