Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43dc9fa

Browse files
陌生人发送私信需要输入网页验证码
1 parent 705a2da commit 43dc9fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎Coding_iOS/Controllers/ConversationViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ - (void)sendPrivateMessageWithMsg:(PrivateMessage *)nextMsg{
413413
[[Coding_NetAPIManager sharedManager] request_SendPrivateMessage:nextMsg andBlock:^(id data, NSError *error) {
414414
if (data) {
415415
[weakSelf.myPriMsgs sendSuccessMessage:data andOldMessage:nextMsg];
416+
}else if (error.userInfo[@"msg"][@"message_need_captcha"]){
417+
NSDictionary *params = @{@"type": @2,
418+
@"receiver_global_key": nextMsg.friend.global_key ?: @"",
419+
};
420+
[NSObject showCaptchaViewParams:params.mutableCopy];
416421
}
417422
[weakSelf dataChangedWithError:NO scrollToBottom:YES animated:YES];
418423
} progerssBlock:^(CGFloat progressValue) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /